Prevent crash if an error message pops up when using the rescan romset button in the rom info dialog, and the user clicks back to a previous window without clicking OK first.

This commit is contained in:
dinkc64 2014-07-19 07:32:50 +00:00
parent d00d6471b0
commit 4467b3ffdd
1 changed files with 6 additions and 1 deletions

View File

@ -2391,7 +2391,12 @@ static INT_PTR CALLBACK RomInfoDialogProc(HWND hDlg, UINT Msg, WPARAM wParam, LP
gameAv[nRInBurnDrvActive] = 0;
BzipClose();
BzipOpen(0); // this time, get the missing roms/error message.
FBAPopupDisplay(PUF_TYPE_ERROR);
{
HWND hScrnWndtmp = hScrnWnd; // Crash preventer: Make the rominfo dialog (this one) the parent modal for the popup message
hScrnWnd = hDlg;
FBAPopupDisplay(PUF_TYPE_ERROR);
hScrnWnd = hScrnWndtmp;
}
break;
}
BzipClose();