summaryrefslogtreecommitdiff
path: root/lib/win32
diff options
context:
space:
mode:
Diffstat (limited to 'lib/win32')
-rw-r--r--lib/win32/emu.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp
index 0a7b8ed6..b201a9e0 100644
--- a/lib/win32/emu.cpp
+++ b/lib/win32/emu.cpp
@@ -18,6 +18,7 @@
#include <string>
#include <list>
+#include <sstream>
// message resource definitions for syslog()
@@ -502,10 +503,11 @@ std::string GetErrorMessage(DWORD errorCode)
return std::string("failed to get error message");
}
- std::string out(pMsgBuf);
+ std::ostringstream line;
+ line << pMsgBuf << " (" << errorCode << ")";
LocalFree(pMsgBuf);
- return out;
+ return line.str();
}
// --------------------------------------------------------------------------