[Glide64] NULL MessageBox title instead of "Error"
According to MSDN, a MessageBox whose title param is a null pointer defaults to the text "Error".
So instead of allocating extra bytes to pass a pointer to the string `"Error"`, why not pass NULL?
Actually the real reason why I made this PR was me having OCD against a cosmetic spacing inconsistency introduced in this commit: aefe8e603c
. So if you prefer "Error" over NULL I'll just undo that part of this PR and keep the line break change in instead. :P
This commit is contained in:
parent
96903f729e
commit
a10200cbce
|
@ -336,9 +336,9 @@ void microcheck()
|
|||
|
||||
ReleaseGfx();
|
||||
#ifdef _WIN32
|
||||
MessageBox(gfx.hWnd, stdstr_f("Error: uCode crc not found in INI, using currently selected uCode\n\n%08lx", uc_crc).c_str(), "Error", MB_OK | MB_ICONEXCLAMATION);
|
||||
|
||||
MessageBox(gfx.hWnd, stdstr_f("Error: uCode crc not found in INI, using currently selected uCode\n\n%08lx", uc_crc).c_str(), NULL, MB_OK | MB_ICONEXCLAMATION);
|
||||
#endif
|
||||
|
||||
ucode_error_report = FALSE; // don't report any more ucode errors from this game
|
||||
}
|
||||
else if (uc == -1 && ucode_error_report)
|
||||
|
@ -347,7 +347,7 @@ void microcheck()
|
|||
|
||||
ReleaseGfx();
|
||||
#ifdef _WIN32
|
||||
MessageBox(gfx.hWnd, stdstr_f("Error: Unsupported uCode!\n\ncrc: %08lx", uc_crc).c_str(), "Error", MB_OK | MB_ICONEXCLAMATION);
|
||||
MessageBox(gfx.hWnd, stdstr_f("Error: Unsupported uCode!\n\ncrc: %08lx", uc_crc).c_str(), NULL, MB_OK | MB_ICONEXCLAMATION);
|
||||
#endif
|
||||
|
||||
ucode_error_report = FALSE; // don't report any more ucode errors from this game
|
||||
|
@ -4174,4 +4174,4 @@ void CALL ProcessRDPList(void)
|
|||
dp_status &= ~0x0002;
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue