Prefer MessageBoxW to MessageBoxA
This commit is contained in:
parent
5dbabef355
commit
fe9e7d5578
|
@ -231,15 +231,14 @@ void CompatPatchesInstall(LdrWatcher* watcher)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// If we reach here, the version is buggy (afaik) and patching failed
|
// If we reach here, the version is buggy (afaik) and patching failed
|
||||||
const auto msg =
|
const auto msg = fmt::format(
|
||||||
fmt::format("You are running {} version {}.{}.{}.{}.\n"
|
L"You are running {} version {}.{}.{}.{}.\n"
|
||||||
"An important fix affecting Dolphin was introduced in build {}.\n"
|
L"An important fix affecting Dolphin was introduced in build {}.\n"
|
||||||
"You can use Dolphin, but there will be known bugs.\n"
|
L"You can use Dolphin, but there will be known bugs.\n"
|
||||||
"Please update this file by installing the latest Universal C Runtime.\n",
|
L"Please update this file by installing the latest Universal C Runtime.\n",
|
||||||
UTF16ToUTF8(event.name), version.major, version.minor, version.build,
|
event.name, version.major, version.minor, version.build, version.qfe, fixed_build);
|
||||||
version.qfe, fixed_build);
|
|
||||||
// Use MessageBox for maximal user annoyance
|
// 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);
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue