Eric Pouech : winhelp: Don't close popup just after they are created.

Alexandre Julliard julliard at winehq.org
Mon Jun 7 10:02:20 CDT 2010


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Fri Jun  4 22:12:39 2010 +0200

winhelp: Don't close popup just after they are created.

---

 programs/winhlp32/winhelp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/programs/winhlp32/winhelp.c b/programs/winhlp32/winhelp.c
index f4742b0..a5a0f31 100644
--- a/programs/winhlp32/winhelp.c
+++ b/programs/winhlp32/winhelp.c
@@ -967,7 +967,7 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
         }
         break;
     case WM_ACTIVATE:
-        if (wParam != WA_INACTIVE || (HWND)lParam == Globals.active_win->hMainWnd ||
+        if (LOWORD(wParam) != WA_INACTIVE || (HWND)lParam == Globals.active_win->hMainWnd ||
             (HWND)lParam == Globals.active_popup->hMainWnd ||
             GetWindow((HWND)lParam, GW_OWNER) == Globals.active_win->hMainWnd)
             break;
@@ -975,7 +975,6 @@ static BOOL WINHELP_CheckPopup(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam
         if (WINHELP_HandleTextMouse(Globals.active_popup, msg, lParam))
             return FALSE;
         /* fall through */
-    case WM_LBUTTONUP:
     case WM_MBUTTONDOWN:
     case WM_RBUTTONDOWN:
     case WM_NCLBUTTONDOWN:




More information about the wine-cvs mailing list