Replace StringCbPrintf() with StrFormat() (PR #1032)

This commit is contained in:
Kelvin Lee
2022-02-16 05:48:20 +11:00
committed by GitHub
parent 48dd638d33
commit 1a4e933778
16 changed files with 103 additions and 147 deletions
+5 -7
View File
@@ -115,15 +115,13 @@ void LoadConfiguration(bool loadImages)
if (dwLoadedComputerType != dwComputerType)
{
char sText[100];
StringCbPrintf(sText, sizeof(sText), "Unsupported Apple2Type(%d). Changing to %d", dwLoadedComputerType, dwComputerType);
std::string strText = StrFormat("Unsupported Apple2Type(%d). Changing to %d", dwLoadedComputerType, dwComputerType);
LogFileOutput("%s\n", sText);
LogFileOutput("%s\n", strText.c_str());
GetFrame().FrameMessageBox(
sText,
"Load Configuration",
MB_ICONSTOP | MB_SETFOREGROUND);
GetFrame().FrameMessageBox(strText.c_str(),
"Load Configuration",
MB_ICONSTOP | MB_SETFOREGROUND);
GetPropertySheet().ConfigSaveApple2Type((eApple2Type)dwComputerType);
}