From 1081dfee3394c36a5682398f220e0432a43b26e5 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sat, 9 Dec 2000 03:06:54 +0000 Subject: [PATCH] Fixed MessageBox() usage. --- dlls/shell32/dialogs.c | 2 +- programs/notepad/dialog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c index d57c4778b23..7b1ea61014b 100644 --- a/dlls/shell32/dialogs.c +++ b/dlls/shell32/dialogs.c @@ -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); } diff --git a/programs/notepad/dialog.c b/programs/notepad/dialog.c index 4d32a795e49..ab3c22174b2 100644 --- a/programs/notepad/dialog.c +++ b/programs/notepad/dialog.c @@ -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); }