Fix double leading "0x" prefix (GH #557)

Thanks to John McCabe for reporting
pull/548/merge
Jeffrey Walton 2018-01-05 18:59:28 -05:00
parent 9624f928f8
commit bfc2b5f02d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 3 additions and 3 deletions

View File

@ -328,14 +328,14 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule
if (h == g_BaseAddressOfMAC)
{
std::ostringstream oss;
oss << "Crypto++ DLL loaded at base address 0x" << std::hex << h << ".\n";
oss << "Crypto++ DLL loaded at base address " << std::hex << h << ".\n";
OutputDebugStringA(oss.str().c_str());
}
else
{
std::ostringstream oss;
oss << "Crypto++ DLL integrity check may fail. Expected module base address is 0x";
oss << std::hex << g_BaseAddressOfMAC << ", but module loaded at 0x" << h << ".\n";
oss << "Crypto++ DLL integrity check may fail. Expected module base address is ";
oss << std::hex << g_BaseAddressOfMAC << ", but module loaded at " << h << ".\n";
OutputDebugStringA(oss.str().c_str());
}
#endif