user32[1/3]: don't create timers with nEventId == 0 in
TrackMouseEvent
Mikołaj Zalewski
mikolaj at zalewski.pl
Sat Oct 14 13:04:53 CDT 2006
When hwnd!=NULL, nEventId ==0 doesn't seach for an empty ID but creates
a timer with ID 0 and returns 1. Instead I pass a pointer to a structure
we use as it shouldn't collide with any other ID.
-------------- next part --------------
diff --git a/dlls/user/input.c b/dlls/user/input.c
index 2be1cf5..ae64979 100644
--- a/dlls/user/input.c
+++ b/dlls/user/input.c
@@ -967,7 +967,7 @@ TrackMouseEvent (TRACKMOUSEEVENT *ptme)
/* Initialize HoverInfo variables even if not hover tracking */
tracking_info.pos = pos;
- timer = SetSystemTimer(tracking_info.tme.hwndTrack, 0, hover_time, TrackMouseEventProc);
+ timer = SetSystemTimer(tracking_info.tme.hwndTrack, (UINT_PTR)&tracking_info.tme, hover_time, TrackMouseEventProc);
}
}
--
1.4.2.3
More information about the wine-patches
mailing list