fix metrics sometime accessed too early

This commit is contained in:
Chris Danford
2005-04-19 15:56:00 +00:00
parent 72edfd5d61
commit 6bf007e02b
@@ -156,7 +156,9 @@ Dialog::Result DialogDriver_Win32::AbortRetryIgnore( CString sMessage, CString I
SDL_PumpEvents();
#endif
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, WINDOW_TITLE.GetValue(), MB_ABORTRETRYIGNORE|MB_DEFBUTTON3 ) )
CString sWindowTitle = WINDOW_TITLE.IsLoaded() ? WINDOW_TITLE.GetValue() : "";
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, sWindowTitle, MB_ABORTRETRYIGNORE|MB_DEFBUTTON3 ) )
{
case IDABORT: return Dialog::abort;
case IDRETRY: return Dialog::retry;
@@ -171,7 +173,9 @@ Dialog::Result DialogDriver_Win32::AbortRetry( CString sMessage, CString ID )
SDL_PumpEvents();
#endif
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, WINDOW_TITLE.GetValue(), MB_RETRYCANCEL ) )
CString sWindowTitle = WINDOW_TITLE.IsLoaded() ? WINDOW_TITLE.GetValue() : "";
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, sWindowTitle, MB_RETRYCANCEL ) )
{
case IDRETRY: return Dialog::retry;
default: ASSERT(0);