diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-09-28 10:14:09 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-09-28 10:14:09 +0200 |
commit | 4ddff15710c9814c1fa6875570a9a18e22943605 (patch) | |
tree | b293d16f89898708337423aaf8b6f2370c025504 /src/OSSupport | |
parent | Merge pull request #2504 from SafwatHalaby/revert (diff) | |
parent | Added the _UNICODE flag on Windows (diff) | |
download | cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.gz cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.bz2 cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.lz cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.xz cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.tar.zst cuberite-4ddff15710c9814c1fa6875570a9a18e22943605.zip |
Diffstat (limited to 'src/OSSupport')
-rw-r--r-- | src/OSSupport/Errors.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OSSupport/Errors.cpp b/src/OSSupport/Errors.cpp index 407799495..7fcd3168f 100644 --- a/src/OSSupport/Errors.cpp +++ b/src/OSSupport/Errors.cpp @@ -10,7 +10,7 @@ AString GetOSErrorString( int a_ErrNo) #ifdef _WIN32 - FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, a_ErrNo, 0, buffer, ARRAYCOUNT(buffer), nullptr); + FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, a_ErrNo, 0, buffer, ARRAYCOUNT(buffer), nullptr); Printf(Out, "%d: %s", a_ErrNo, buffer); if (!Out.empty() && (Out[Out.length() - 1] == '\n')) { |