Dmitry Timoshkov : user32: Do not test window state on the HCBT_SETFOCUS event, it's undefined.

Alexandre Julliard julliard at winehq.org
Tue Sep 21 13:59:28 CDT 2010


Module: wine
Branch: master
Commit: 8118430b687e128ec2a9b1606e17f9348d7055e3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8118430b687e128ec2a9b1606e17f9348d7055e3

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue Sep 21 17:54:17 2010 +0900

user32: Do not test window state on the HCBT_SETFOCUS event, it's undefined.

---

 dlls/user32/tests/win.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index eeab8b0..190ca79 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -1028,7 +1028,6 @@ static LRESULT CALLBACK cbt_hook_proc(int nCode, WPARAM wParam, LPARAM lParam)
     case HCBT_MOVESIZE:
     case HCBT_MINMAX:
     case HCBT_ACTIVATE:
-    case HCBT_SETFOCUS:
 	if (pGetWindowInfo && IsWindow(hwnd))
 	{
 	    WINDOWINFO info;
@@ -1042,7 +1041,8 @@ static LRESULT CALLBACK cbt_hook_proc(int nCode, WPARAM wParam, LPARAM lParam)
 	    verify_window_info(code_name, hwnd, &info);
 	}
         break;
-    /* on HCBT_DESTROYWND window state is undefined */
+    /* window state is undefined */
+    case HCBT_SETFOCUS:
     case HCBT_DESTROYWND:
         break;
     default:




More information about the wine-cvs mailing list