From 00ced7b0925d993b17babbf03e3498b4252b8af0 Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Sat, 29 May 1999 14:13:16 +0000
Subject: [PATCH] Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello
 <abbeyj@wpi.edu> Fixed a problem when using string resources as tooltext.

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

diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
index 44419e4575a..f5bd3f7c675 100644
--- a/dlls/comctl32/tooltips.c
+++ b/dlls/comctl32/tooltips.c
@@ -107,12 +107,12 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
 	    SendMessageA (toolPtr->hwnd, WM_NOTIFY,
 			    (WPARAM)toolPtr->uId, (LPARAM)&ttnmdi);
 
-	    if ((ttnmdi.hinst) && (HIWORD((UINT)ttnmdi.szText) == 0)) {
-		LoadStringW (ttnmdi.hinst, (UINT)ttnmdi.szText,
+	    if ((ttnmdi.hinst) && (HIWORD((UINT)ttnmdi.lpszText) == 0)) {
+		LoadStringW (ttnmdi.hinst, (UINT)ttnmdi.lpszText,
 			       infoPtr->szTipText, INFOTIPSIZE);
 		if (ttnmdi.uFlags & TTF_DI_SETITEM) {
 		    toolPtr->hinst = ttnmdi.hinst;
-		    toolPtr->lpszText = (LPWSTR)ttnmdi.szText;
+		    toolPtr->lpszText = (LPWSTR)ttnmdi.lpszText;
 		}
 	    }
 	    else if (ttnmdi.szText[0]) {
-- 
GitLab