mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-19 07:37:12 +00:00
Replace StringCbPrintf() with StrFormat() (PR #1032)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user