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:
+5
-7
@@ -1585,15 +1585,13 @@ void MemInitializeROM(void)
|
||||
}
|
||||
}
|
||||
|
||||
TCHAR sText[MAX_PATH];
|
||||
StringCbPrintf(sText, sizeof(sText), TEXT("Unable to open the required firmware ROM data file.\n\nFile: %s"), sRomFileName);
|
||||
std::string strText = StrFormat("Unable to open the required firmware ROM data file.\n\nFile: %s", sRomFileName);
|
||||
|
||||
LogFileOutput("%s\n", sText);
|
||||
LogFileOutput("%s\n", strText.c_str());
|
||||
|
||||
GetFrame().FrameMessageBox(
|
||||
sText,
|
||||
g_pAppTitle.c_str(),
|
||||
MB_ICONSTOP | MB_SETFOREGROUND);
|
||||
GetFrame().FrameMessageBox(strText.c_str(),
|
||||
g_pAppTitle.c_str(),
|
||||
MB_ICONSTOP | MB_SETFOREGROUND);
|
||||
|
||||
ExitProcess(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user