diff --git a/Kiseki.Patcher/Source/Hooks/CRoblox.cpp b/Kiseki.Patcher/Source/Hooks/CRoblox.cpp index 6729493..8c479a3 100644 --- a/Kiseki.Patcher/Source/Hooks/CRoblox.cpp +++ b/Kiseki.Patcher/Source/Hooks/CRoblox.cpp @@ -29,17 +29,17 @@ BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this) #ifdef _DEBUG if (!hasAuthenticationUrl) { - MessageBoxA(nullptr, "Missing authentication URL", "Kiseki", MB_OK | MB_ICONERROR); + MessageBoxW(nullptr, L"Missing authentication URL", L"Kiseki", MB_OK | MB_ICONERROR); } if (!hasAuthenticationTicket) { - MessageBoxA(nullptr, "Missing authentication ticket", "Kiseki", MB_OK | MB_ICONERROR); + MessageBoxW(nullptr, L"Missing authentication ticket", L"Kiseki", MB_OK | MB_ICONERROR); } if (!hasJoinScriptUrl) { - MessageBoxA(nullptr, "Missing join script URL", "Kiseki", MB_OK | MB_ICONERROR); + MessageBoxW(nullptr, L"Missing join script URL", L"Kiseki", MB_OK | MB_ICONERROR); } #endif @@ -54,7 +54,7 @@ BOOL __fastcall CRobloxApp__InitInstance_hook(CRobloxApp* _this) if (!hasJobId) { #ifdef _DEBUG - MessageBoxA(nullptr, "Missing job ID", "Kiseki", MB_OK | MB_ICONERROR); + MessageBoxW(nullptr, L"Missing job ID", L"Kiseki", MB_OK | MB_ICONERROR); #endif return FALSE; } diff --git a/Kiseki.Patcher/Source/main.cpp b/Kiseki.Patcher/Source/main.cpp index e2cf590..9d03ba3 100644 --- a/Kiseki.Patcher/Source/main.cpp +++ b/Kiseki.Patcher/Source/main.cpp @@ -53,8 +53,8 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv if (patchesError != NO_ERROR) { #ifdef _DEBUG - std::string message = "Patches::Apply returned " + std::to_string(patchesError); - MessageBoxA(nullptr, message.c_str(), nullptr, MB_ICONERROR); + std::wstring message = "Patches::Apply returned " + std::to_string(patchesError); + MessageBoxW(nullptr, message, nullptr, MB_ICONERROR); #endif ExitProcess(EXIT_FAILURE); @@ -64,8 +64,8 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv if (curlError != CURLE_OK) { #ifdef _DEBUG - std::string message = "curl_global_init returned " + std::to_string(curlError); - MessageBoxA(nullptr, message.c_str(), nullptr, MB_ICONERROR); + std::wstring message = "curl_global_init returned " + std::to_string(curlError); + MessageBoxW(nullptr, message, nullptr, MB_ICONERROR); #endif ExitProcess(EXIT_FAILURE);