comctl32: Tooltip AddTool needs to support TTTOOLINFOW_V3_SIZE

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed May 7 20:32:43 CDT 2014


Hi,

Changelog:
       comctl32: Tooltip AddTool needs to support TTTOOLINFOW_V3_SIZE


Best Regards
   Alistair Leslie-Hughes
-------------- next part --------------
>From 0e6e7c61db9f9369de942f645296f85a629f2b57 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Fri, 2 May 2014 11:02:51 +1000
Subject: [PATCH] Tooltip AddTool needs to support TTTOOLINFOW_V3_SIZE
To: wine-patches <wine-patches at winehq.org>

---
 dlls/comctl32/tooltips.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
index f74ea65..d7b0e8c 100644
--- a/dlls/comctl32/tooltips.c
+++ b/dlls/comctl32/tooltips.c
@@ -1037,8 +1037,9 @@ TOOLTIPS_AddToolT (TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *ti, BOOL isW)
 	   infoPtr->hwndSelf, ti->hwnd, ti->uId,
 	   (ti->uFlags & TTF_IDISHWND) ? " TTF_IDISHWND" : "");
 
-    if (ti->cbSize >= TTTOOLINFOW_V2_SIZE && !ti->lpszText && isW)
-        return FALSE;
+    if ((ti->cbSize > TTTOOLINFOW_V2_SIZE &&
+        ti->cbSize != TTTOOLINFOW_V3_SIZE) && !ti->lpszText && isW)
+       return FALSE;
 
     if (infoPtr->uNumTools == 0) {
 	infoPtr->tools = Alloc (sizeof(TTTOOL_INFO));
-- 
1.9.1



More information about the wine-patches mailing list