Author: sserapion
Date: Thu Oct 29 23:36:15 2009
New Revision: 43837
URL:
http://svn.reactos.org/svn/reactos?rev=43837&view=rev
Log:
Fix comctl32 build and potential bug.
Modified:
branches/ros-amd64-bringup/reactos/dll/win32/comctl32/tooltips.c
Modified: branches/ros-amd64-bringup/reactos/dll/win32/comctl32/tooltips.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/w…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/win32/comctl32/tooltips.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/dll/win32/comctl32/tooltips.c [iso-8859-1] Thu Oct
29 23:36:15 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) {
@@ -2418,8 +2417,8 @@
}
}
else if (lParam == NF_REQUERY) {
- nResult = (INT) SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
- (WPARAM)hwnd, (LPARAM)NF_QUERY);
+ nResult = SendMessageW (toolPtr->hwnd, WM_NOTIFYFORMAT,
+ (WPARAM)infoPtr->hwndSelf, (LPARAM)NF_QUERY);
if (nResult == NFR_ANSI) {
toolPtr->bNotifyUnicode = FALSE;
TRACE(" -- WM_NOTIFYFORMAT returns: NFR_ANSI\n");