From 970ca6093c590d390d6cfd649ce7f8a9febbd5f7 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 2 Jun 2024 14:21:13 +0200 Subject: Core/Misc: Fixed windows _UNICODE incompatibilities (cherry picked from commit fd4ffc81b2593dbf5554b553828a736ac6263e98) --- src/server/bnetserver/Main.cpp | 7 ++++--- src/server/worldserver/Main.cpp | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/server') diff --git a/src/server/bnetserver/Main.cpp b/src/server/bnetserver/Main.cpp index 97fccdeb871..e9ae51847c5 100644 --- a/src/server/bnetserver/Main.cpp +++ b/src/server/bnetserver/Main.cpp @@ -66,9 +66,10 @@ namespace fs = boost::filesystem; #if TRINITY_PLATFORM == TRINITY_PLATFORM_WINDOWS #include "ServiceWin32.h" -char serviceName[] = "bnetserver"; -char serviceLongName[] = "TrinityCore bnet service"; -char serviceDescription[] = "TrinityCore Battle.net emulator authentication service"; +#include +TCHAR serviceName[] = _T("bnetserver"); +TCHAR serviceLongName[] = _T("TrinityCore bnet service"); +TCHAR serviceDescription[] = _T("TrinityCore Battle.net emulator authentication service"); /* * -1 - not in service mode * 0 - stopped diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index 74cd544965e..e781fb8b95e 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -81,9 +81,10 @@ namespace fs = boost::filesystem; #ifdef _WIN32 #include "ServiceWin32.h" -char serviceName[] = "worldserver"; -char serviceLongName[] = "TrinityCore world service"; -char serviceDescription[] = "TrinityCore World of Warcraft emulator world service"; +#include +TCHAR serviceName[] = _T("worldserver"); +TCHAR serviceLongName[] = _T("TrinityCore world service"); +TCHAR serviceDescription[] = _T("TrinityCore World of Warcraft emulator world service"); /* * -1 - not in service mode * 0 - stopped -- cgit v1.2.3