diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-05 22:41:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-05 22:41:57 +0300 |
commit | 3cdb443d6cd326c4bce4a396d179b60cb1446b35 (patch) | |
tree | b71fcecf0bd51273147da40ce179980b1cdd4fdf /libs/libmdbx/src | |
parent | 4587927bb51e66934cc78409a05c6667e3b97daf (diff) |
fixes #1649 (Wrong codepage in mdbx tools errors)
Diffstat (limited to 'libs/libmdbx/src')
-rw-r--r-- | libs/libmdbx/src/src/mdbx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/libmdbx/src/src/mdbx.c b/libs/libmdbx/src/src/mdbx.c index af03bdaa8d..926f9092d8 100644 --- a/libs/libmdbx/src/src/mdbx.c +++ b/libs/libmdbx/src/src/mdbx.c @@ -1360,8 +1360,10 @@ const char *__cold mdbx_strerror(int errnum) { FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, errnum, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), buffer, sizeof(buffer), NULL); - if (size) + if (size) { + CharToOemBuffA(buffer, buffer, (DWORD)size); msg = buffer; + } #else if (errnum < 0) { static char buffer[32]; |