Author: fireball
Date: Sat Nov  7 20:42:57 2009
New Revision: 44014

URL: http://svn.reactos.org/svn/reactos?rev=44014&view=rev
Log:
[comctl32]
- Fix a critical bug in TOOLTIPS_NotifyFormat. Its first parameter changed from 
HWND to infoPtr pointer, however the function was not updated accordingly.

Modified:
    trunk/reactos/dll/win32/comctl32/tooltips.c

Modified: trunk/reactos/dll/win32/comctl32/tooltips.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/tooltips.c?rev=44014&r1=44013&r2=44014&view=diff
==============================================================================
--- trunk/reactos/dll/win32/comctl32/tooltips.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/comctl32/tooltips.c [iso-8859-1] Sat Nov  7 
20:42:57 2009
@@ -2402,13 +2402,12 @@
 
 
 static LRESULT
-TOOLTIPS_NotifyFormat (HWND hwnd, WPARAM wParam, LPARAM lParam)
-{
-    TOOLTIPS_INFO *infoPtr = TOOLTIPS_GetInfoPtr (hwnd);
+TOOLTIPS_NotifyFormat (TOOLTIPS_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
+{
     TTTOOL_INFO *toolPtr = infoPtr->tools;
     INT nResult;
 
-    TRACE("hwnd=%p wParam=%lx lParam=%lx\n", hwnd, wParam, lParam);
+    TRACE("hwnd=%p wParam=%lx lParam=%lx\n", infoPtr->hwndSelf, wParam, 
lParam);
 
     if (lParam == NF_QUERY) {
         if (toolPtr->bNotifyUnicode) {
@@ -2419,7 +2418,7 @@
     }
     else if (lParam == NF_REQUERY) {
         nResult = (INT) SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
-                    (WPARAM)hwnd, (LPARAM)NF_QUERY);
+                    (WPARAM)infoPtr->hwndSelf, (LPARAM)NF_QUERY);
         if (nResult == NFR_ANSI) {
             toolPtr->bNotifyUnicode = FALSE;
             TRACE(" -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");


Reply via email to