From e3c4ccb0fcf730e6139eb8048d36ce58b4da48f1 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 2 Oct 2016 18:03:30 -0400 Subject: [PATCH] Add newline to OutputDebugString (Issue 314) --- fipstest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fipstest.cpp b/fipstest.cpp index 1749598a..1c2fe1e6 100644 --- a/fipstest.cpp +++ b/fipstest.cpp @@ -334,9 +334,9 @@ bool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModule { 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; + oss << std::hex << g_BaseAddressOfMAC << ", but module loaded at 0x" << h << "\n"; #ifdef CRYPTOPP_WIN32_AVAILABLE - OutputDebugStringA(oss.str().c_str()); + OutputDebugString(oss.str().c_str()); #endif }