From b079de35cec7cbcb32a767f5ffbc3dd426dc3ebe Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 1 Oct 2003 03:04:51 +0000 Subject: [PATCH] Make it possible to close the "About Wine" dialog by pressing Escape. --- dlls/shell32/shell32_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index e0b24c405f2..92a56a8b518 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -844,8 +844,9 @@ INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam, break; case WM_COMMAND: - if (wParam == IDOK) - { EndDialog(hWnd, TRUE); + if (wParam == IDOK || wParam == IDCANCEL) + { + EndDialog(hWnd, TRUE); return TRUE; } break;