Skip to content
Permalink
Browse files

Prefer MessageBoxW to MessageBoxA

  • Loading branch information
tinyredpanda committed Nov 23, 2019
1 parent 5dbabef commit fe9e7d557803655ea61dc748995647cf2aae495c
Showing with 7 additions and 8 deletions.
  1. +7 −8 Source/Core/Common/CompatPatches.cpp
@@ -231,15 +231,14 @@ void CompatPatchesInstall(LdrWatcher* watcher)
return;
}
// If we reach here, the version is buggy (afaik) and patching failed
const auto msg =
fmt::format("You are running {} version {}.{}.{}.{}.\n"
"An important fix affecting Dolphin was introduced in build {}.\n"
"You can use Dolphin, but there will be known bugs.\n"
"Please update this file by installing the latest Universal C Runtime.\n",
UTF16ToUTF8(event.name), version.major, version.minor, version.build,
version.qfe, fixed_build);
const auto msg = fmt::format(
L"You are running {} version {}.{}.{}.{}.\n"
L"An important fix affecting Dolphin was introduced in build {}.\n"
L"You can use Dolphin, but there will be known bugs.\n"
L"Please update this file by installing the latest Universal C Runtime.\n",
event.name, version.major, version.minor, version.build, version.qfe, fixed_build);
// Use MessageBox for maximal user annoyance
MessageBoxA(nullptr, msg.c_str(), "WARNING: BUGGY UCRT VERSION", MB_ICONEXCLAMATION);
MessageBoxW(nullptr, msg.c_str(), L"WARNING: BUGGY UCRT VERSION", MB_ICONEXCLAMATION);
}});
}

0 comments on commit fe9e7d5

Please sign in to comment.
You can’t perform that action at this time.