chore: merge 3f01dfb from prod

This commit is contained in:
rjindael 2023-07-29 16:09:21 -07:00
parent 41607ad9f2
commit 6a70130c55
No known key found for this signature in database
GPG Key ID: D069369C906CCF31
1 changed files with 4 additions and 4 deletions

View File

@ -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);