Add "Crypto++ DLL" to OutputDebugString messages (Issue 314)
Visual Studio 2010 was opt-in; which Visual Studio 2012 is opt-outpull/326/head
parent
2413c0e041
commit
82b13e23ca
2
dll.cpp
2
dll.cpp
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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())));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue