Author: jimtabor
Date: Thu May 17 17:54:09 2012
New Revision: 56604

URL: http://svn.reactos.org/svn/reactos?rev=56604&view=rev
Log:
- [User32] Patch by Dmitry Timoshkov : IsDialogMessage should allow control ids 
other than IDOK when processing WM_KEYDOWN.

Modified:
    trunk/reactos/win32ss/user/user32/windows/dialog.c

Modified: trunk/reactos/win32ss/user/user32/windows/dialog.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/windows/dialog.c?rev=56604&r1=56603&r2=56604&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/dialog.c [iso-8859-1] Thu May 17 
17:54:09 2012
@@ -2561,7 +2561,7 @@
                  else if (DC_HASDEFID == HIWORD(dw = SendMessageW (hDlg, 
DM_GETDEFID, 0, 0)))
                  {
                     HWND hwndDef = DIALOG_IdToHwnd(hDlg, LOWORD(dw));
-                    if (hwndDef ? IsWindowEnabled(hwndDef) : LOWORD(dw)==IDOK)
+                    if (!hwndDef || IsWindowEnabled(hwndDef))
                         SendMessageW( hDlg, WM_COMMAND, MAKEWPARAM( 
LOWORD(dw), BN_CLICKED ), (LPARAM)hwndDef);
                  }
                  else


Reply via email to