diff options
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/game/Warden/WardenMac.cpp | 10 | ||||
| -rw-r--r-- | src/server/game/Warden/WardenWin.cpp | 10 | ||||
| -rw-r--r-- | src/server/worldserver/Main.cpp | 4 | 
3 files changed, 12 insertions, 12 deletions
diff --git a/src/server/game/Warden/WardenMac.cpp b/src/server/game/Warden/WardenMac.cpp index 259a16358fc..56c2942cb65 100644 --- a/src/server/game/Warden/WardenMac.cpp +++ b/src/server/game/Warden/WardenMac.cpp @@ -55,15 +55,15 @@ void WardenMac::Init(WorldSession* pClient, SessionKey const& K)      _inputCrypto.Init(_inputKey);      _outputCrypto.Init(_outputKey);      TC_LOG_DEBUG("warden", "Server side warden for client %u initializing...", pClient->GetAccountId()); -    TC_LOG_DEBUG("warden", "C->S Key: %s", ByteArrayToHexStr(_inputKey, 16).c_str()); -    TC_LOG_DEBUG("warden", "S->C Key: %s", ByteArrayToHexStr(_outputKey, 16).c_str()); -    TC_LOG_DEBUG("warden", "  Seed: %s", ByteArrayToHexStr(_seed, 16).c_str()); +    TC_LOG_DEBUG("warden", "C->S Key: %s", ByteArrayToHexStr(_inputKey).c_str()); +    TC_LOG_DEBUG("warden", "S->C Key: %s", ByteArrayToHexStr(_outputKey).c_str()); +    TC_LOG_DEBUG("warden", "  Seed: %s", ByteArrayToHexStr(_seed).c_str());      TC_LOG_DEBUG("warden", "Loading Module...");      _module = GetModuleForClient(); -    TC_LOG_DEBUG("warden", "Module Key: %s", ByteArrayToHexStr(_module->Key, 16).c_str()); -    TC_LOG_DEBUG("warden", "Module ID: %s", ByteArrayToHexStr(_module->Id, 16).c_str()); +    TC_LOG_DEBUG("warden", "Module Key: %s", ByteArrayToHexStr(_module->Key).c_str()); +    TC_LOG_DEBUG("warden", "Module ID: %s", ByteArrayToHexStr(_module->Id).c_str());      RequestModule();  } diff --git a/src/server/game/Warden/WardenWin.cpp b/src/server/game/Warden/WardenWin.cpp index 05aad4be3bc..bec9ee91d2b 100644 --- a/src/server/game/Warden/WardenWin.cpp +++ b/src/server/game/Warden/WardenWin.cpp @@ -53,15 +53,15 @@ void WardenWin::Init(WorldSession* session, SessionKey const& K)      _inputCrypto.Init(_inputKey);      _outputCrypto.Init(_outputKey);      TC_LOG_DEBUG("warden", "Server side warden for client %u initializing...", session->GetAccountId()); -    TC_LOG_DEBUG("warden", "C->S Key: %s", ByteArrayToHexStr(_inputKey, 16).c_str()); -    TC_LOG_DEBUG("warden", "S->C Key: %s", ByteArrayToHexStr(_outputKey, 16).c_str()); -    TC_LOG_DEBUG("warden", "  Seed: %s", ByteArrayToHexStr(_seed, 16).c_str()); +    TC_LOG_DEBUG("warden", "C->S Key: %s", ByteArrayToHexStr(_inputKey).c_str()); +    TC_LOG_DEBUG("warden", "S->C Key: %s", ByteArrayToHexStr(_outputKey).c_str()); +    TC_LOG_DEBUG("warden", "  Seed: %s", ByteArrayToHexStr(_seed).c_str());      TC_LOG_DEBUG("warden", "Loading Module...");      _module = GetModuleForClient(); -    TC_LOG_DEBUG("warden", "Module Key: %s", ByteArrayToHexStr(_module->Key, 16).c_str()); -    TC_LOG_DEBUG("warden", "Module ID: %s", ByteArrayToHexStr(_module->Id, 16).c_str()); +    TC_LOG_DEBUG("warden", "Module Key: %s", ByteArrayToHexStr(_module->Key).c_str()); +    TC_LOG_DEBUG("warden", "Module ID: %s", ByteArrayToHexStr(_module->Id).c_str());      RequestModule();  } diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index 01556d4ef4f..1705aae4f2a 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -425,7 +425,7 @@ void ShutdownCLIThread(std::thread* cliThread)              // if CancelSynchronousIo fails with ERROR_NOT_FOUND then there was nothing to cancel, proceed with shutdown              if (errorCode != ERROR_NOT_FOUND)              { -                LPSTR errorBuffer; +                LPCSTR errorBuffer;                  DWORD numCharsWritten = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_IGNORE_INSERTS,                      nullptr, errorCode, 0, (LPTSTR)&errorBuffer, 0, nullptr);                  if (!numCharsWritten) @@ -434,7 +434,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 (numCharsWritten) -                    LocalFree(errorBuffer); +                    LocalFree((LPSTR)errorBuffer);                  // send keyboard input to safely unblock the CLI thread                  INPUT_RECORD b[4];  | 
