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;
case WM_COMMAND:
if (wParam == IDOK)
{ EndDialog(hWnd, TRUE);
if (wParam == IDOK || wParam == IDCANCEL)
{
EndDialog(hWnd, TRUE);
return TRUE;
}
break;