Make it possible to close the "About Wine" dialog by pressing Escape.

This commit is contained in:
Pavel Roskin 2003-10-01 03:04:51 +00:00 committed by Alexandre Julliard
parent d31d27f716
commit b079de35ce
1 changed files with 3 additions and 2 deletions

View File

@ -844,8 +844,9 @@ INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
break; break;
case WM_COMMAND: case WM_COMMAND:
if (wParam == IDOK) if (wParam == IDOK || wParam == IDCANCEL)
{ EndDialog(hWnd, TRUE); {
EndDialog(hWnd, TRUE);
return TRUE; return TRUE;
} }
break; break;