Fix incorrect error messages on Windows

fixes #10637
This commit is contained in:
Gunnar Beutner 2015-11-15 21:18:27 +01:00
parent e9db4bc1b9
commit eb67f3779f
1 changed files with 1 additions and 1 deletions

View File

@ -989,7 +989,7 @@ String Utility::FormatErrorNumber(int code) {
String result = "Unknown error.";
DWORD rc = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM, NULL, code, 0, (char *)&message,
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, code, 0, (char *)&message,
0, NULL);
if (rc != 0) {