diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-09-26 23:19:29 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-09-26 23:19:29 +0200 |
commit | 803c0c69656188264bd01e71af036452286a8752 (patch) | |
tree | ece266b60ab60178f98d5102209aeb50d7b2e685 /src/OSSupport | |
parent | Merge pull request #2495 from Seadragon91/clang-3.7 (diff) | |
download | cuberite-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.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')) { |