comdlg32: No and escape are equivalent.

This commit is contained in:
Juan Lang 2010-06-02 10:10:07 -07:00 committed by Alexandre Julliard
parent 9aa9a1229f
commit 6f42f596e1
1 changed files with 2 additions and 2 deletions

View File

@ -2303,7 +2303,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
LoadStringW(COMDLG32_hInstance, IDS_OVERWRITEFILE, lpstrOverwrite, 100);
answer = MessageBoxW(hwnd, lpstrOverwrite, fodInfos->title,
MB_YESNO | MB_ICONEXCLAMATION);
if (answer == IDNO)
if (answer == IDNO || answer == IDCANCEL)
{
ret = FALSE;
goto ret;
@ -2321,7 +2321,7 @@ BOOL FILEDLG95_OnOpen(HWND hwnd)
LoadStringW(COMDLG32_hInstance, IDS_CREATEFILE, lpstrCreate, 100);
answer = MessageBoxW(hwnd, lpstrCreate, fodInfos->title,
MB_YESNO | MB_ICONEXCLAMATION);
if (answer == IDNO)
if (answer == IDNO || answer == IDCANCEL)
{
ret = FALSE;
goto ret;