From 4967af88474f7d8acce76952d5af6037a4360672 Mon Sep 17 00:00:00 2001 From: Will Tipton Date: Mon, 11 Aug 2008 10:23:45 -0400 Subject: Added input validation to TOOLTIPS_GetTextW() in dlls/comctl32/tooltips.c in order to handle gracefully the case where it is called with an empty tooltip. This occurs in the Full Tilt Poker client as discussed in Bug 14790. --- dlls/comctl32/tooltips.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c index f7e538b..1149a07 100644 --- a/dlls/comctl32/tooltips.c +++ b/dlls/comctl32/tooltips.c @@ -1574,6 +1574,9 @@ TOOLTIPS_GetTextW (HWND hwnd, WPARAM wParam, LPARAM lParam) nTool = TOOLTIPS_GetToolFromInfoW (infoPtr, lpToolInfo); if (nTool == -1) return 0; + if (infoPtr->tools[nTool].lpszText == NULL) + return 0; + strcpyW (lpToolInfo->lpszText, infoPtr->tools[nTool].lpszText); return 0; -- 1.5.6.5