Fix compilation warnings on Windows

This commit is contained in:
Martin Endler
2020-02-07 23:31:13 +01:00
parent 7380a20697
commit ca9b0ba7ec

View File

@@ -19,7 +19,7 @@ namespace {
std::string error_msg(const char* method, LONG result) { std::string error_msg(const char* method, LONG result) {
char msg[ERR_MSG_MAX_LEN]; char msg[ERR_MSG_MAX_LEN];
#ifdef _WIN32 #ifdef _WIN32
LPVOID lpMsgBuf; LPTSTR lpMsgBuf;
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS, FORMAT_MESSAGE_IGNORE_INSERTS,