aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/Main.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-08-04 15:42:08 +0200
committerShauren <shauren.trinity@gmail.com>2020-08-04 15:42:08 +0200
commitb3db50a3b41b2db209327387f59afa1c40532773 (patch)
tree66be105dd675c640a5b11b77e8bba4ee287d2493 /src/server/worldserver/Main.cpp
parentdf8d50c06a6776312d5bd912dd6a5273a190a1e4 (diff)
Core/Misc: Fix compile errors found with msvc /permissive-
Diffstat (limited to 'src/server/worldserver/Main.cpp')
-rw-r--r--src/server/worldserver/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp
index 45564e3cdf9..98dc8913c45 100644
--- a/src/server/worldserver/Main.cpp
+++ b/src/server/worldserver/Main.cpp
@@ -370,7 +370,7 @@ void ShutdownCLIThread(std::thread* cliThread)
{
// if CancelSynchronousIo() fails, print the error and try with old way
DWORD errorCode = GetLastError();
- LPSTR errorBuffer;
+ LPCSTR errorBuffer;
DWORD formatReturnCode = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS,
nullptr, errorCode, 0, (LPTSTR)&errorBuffer, 0, nullptr);
@@ -380,7 +380,7 @@ void ShutdownCLIThread(std::thread* cliThread)
TC_LOG_DEBUG("server.worldserver", "Error cancelling I/O of CliThread, error code %u, detail: %s", uint32(errorCode), errorBuffer);
if (!formatReturnCode)
- LocalFree(errorBuffer);
+ LocalFree((LPSTR)errorBuffer);
// send keyboard input to safely unblock the CLI thread
INPUT_RECORD b[4];