summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authortinyredpanda <39399309+tinyredpanda@users.noreply.github.com>2019-11-23 13:03:37 +0000
committertinyredpanda <39399309+tinyredpanda@users.noreply.github.com>2019-11-23 13:56:05 +0000
commitfe9e7d557803655ea61dc748995647cf2aae495c (patch)
treecb6fac06a3321dcdb8fb97576f9653718adf10af /Source/Core
parent5dbabef355a00cc726cc08443c96517564f9bea0 (diff)
Prefer MessageBoxW to MessageBoxA
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/CompatPatches.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/Core/Common/CompatPatches.cpp b/Source/Core/Common/CompatPatches.cpp
index e07028e9e4..f2b179eb12 100644
--- a/Source/Core/Common/CompatPatches.cpp
+++ b/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);
}});
}