summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-28 10:14:09 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-28 10:14:09 +0200
commit4ddff15710c9814c1fa6875570a9a18e22943605 (patch)
treeb293d16f89898708337423aaf8b6f2370c025504 /src/OSSupport
parentMerge pull request #2504 from SafwatHalaby/revert (diff)
parentAdded the _UNICODE flag on Windows (diff)
downloadcuberite-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.cpp2
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'))
{