Add "Crypto++ DLL" to OutputDebugString messages (Issue 314)

Visual Studio 2010 was opt-in; which Visual Studio 2012 is opt-out
pull/326/head
Jeffrey Walton 2016-10-02 19:22:49 -04:00
parent 2413c0e041
commit 82b13e23ca
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ static void SetNewAndDeleteFunctionPointers()
return; return;
} }
OutputDebugString("Crypto++ was not able to obtain new and delete function pointers.\n"); OutputDebugString("Crypto++ DLL was not able to obtain new and delete function pointers.\n");
throw 0; throw 0;
} }

View File

@ -446,7 +446,7 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule
// hash from disk instead // hash from disk instead
if (!VerifyBufsEqual(expectedModuleMac, actualMac, macSize)) if (!VerifyBufsEqual(expectedModuleMac, actualMac, macSize))
{ {
OutputDebugString("In memory integrity check failed. This may be caused by debug breakpoints or DLL relocation.\n"); OutputDebugString("Crypto++ DLL in-memory integrity check failed. This may be caused by debug breakpoints or DLL relocation.\n");
moduleStream.clear(); moduleStream.clear();
moduleStream.seekg(0); moduleStream.seekg(0);
verifier.Initialize(MakeParameters(Name::OutputBuffer(), ByteArrayParameter(actualMac, (unsigned int)actualMac.size()))); verifier.Initialize(MakeParameters(Name::OutputBuffer(), ByteArrayParameter(actualMac, (unsigned int)actualMac.size())));