summaryrefslogtreecommitdiffstats
path: root/src/OSSupport
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-26 23:19:29 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-26 23:19:29 +0200
commit803c0c69656188264bd01e71af036452286a8752 (patch)
treeece266b60ab60178f98d5102209aeb50d7b2e685 /src/OSSupport
parentMerge pull request #2495 from Seadragon91/clang-3.7 (diff)
downloadcuberite-803c0c69656188264bd01e71af036452286a8752.tar
cuberite-803c0c69656188264bd01e71af036452286a8752.tar.gz
cuberite-803c0c69656188264bd01e71af036452286a8752.tar.bz2
cuberite-803c0c69656188264bd01e71af036452286a8752.tar.lz
cuberite-803c0c69656188264bd01e71af036452286a8752.tar.xz
cuberite-803c0c69656188264bd01e71af036452286a8752.tar.zst
cuberite-803c0c69656188264bd01e71af036452286a8752.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'))
{