Fixed MessageBox() usage.

oldstable
Andreas Mohr 2000-12-09 03:06:54 +00:00 committed by Alexandre Julliard
parent 482122a1de
commit 1081dfee33
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ void WINAPI RunFileDlg(
void WINAPI ExitWindowsDialog (HWND hWndOwner)
{
TRACE("(0x%08x)\n", hWndOwner);
if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDOK)
if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDYES)
{
SendMessageA ( hWndOwner, WM_QUIT, 0, 0);
}

View File

@ -76,7 +76,7 @@ int AlertFileNotSaved(LPSTR szFileName) {
LoadString(Globals.hInstance, IDS_ERROR, szRessource, sizeof(szRessource));
/* Display modal */
nResult = MessageBox(Globals.hMainWnd, szMessage, szRessource, MB_ICONEXCLAMATION + MB_YESNOCANCEL);
nResult = MessageBox(Globals.hMainWnd, szMessage, szRessource, MB_ICONEXCLAMATION|MB_YESNOCANCEL);
return(nResult);
}