From 6a70130c55cc2b0adba49750162eb88e96f4313f Mon Sep 17 00:00:00 2001 From: rjindael Date: Sat, 29 Jul 2023 16:09:21 -0700 Subject: [PATCH] chore: merge 3f01dfb from prod --- Kiseki.Patcher/Source/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Kiseki.Patcher/Source/main.cpp b/Kiseki.Patcher/Source/main.cpp index 9d03ba3..d9d68c0 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::wstring message = "Patches::Apply returned " + std::to_string(patchesError); - MessageBoxW(nullptr, message, nullptr, MB_ICONERROR); + std::string message = "Patches::Apply returned " + std::to_string(patchesError); + MessageBoxW(nullptr, std::wstring(message.begin(), message.end()).c_str(), 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::wstring message = "curl_global_init returned " + std::to_string(curlError); - MessageBoxW(nullptr, message, nullptr, MB_ICONERROR); + std::string message = "curl_global_init returned " + std::to_string(curlError); + MessageBoxW(nullptr, std::wstring(message.begin(), message.end()).c_str(), nullptr, MB_ICONERROR); #endif ExitProcess(EXIT_FAILURE);