[NtUser] - Stop spurious window handle errors.

svn path=/trunk/; revision=57046
This commit is contained in:
James Tabor 2012-08-06 03:25:29 +00:00
parent a90234288c
commit ab2b99cc4f

View file

@ -619,12 +619,12 @@ NtUserSetTimer
TIMERPROC lpTimerFunc TIMERPROC lpTimerFunc
) )
{ {
PWND Window; PWND Window = NULL;
DECLARE_RETURN(UINT_PTR); DECLARE_RETURN(UINT_PTR);
TRACE("Enter NtUserSetTimer\n"); TRACE("Enter NtUserSetTimer\n");
UserEnterExclusive(); UserEnterExclusive();
Window = UserGetWindowObject(hWnd); if (hWnd) Window = UserGetWindowObject(hWnd);
UserLeave(); UserLeave();
RETURN(IntSetTimer(Window, nIDEvent, uElapse, lpTimerFunc, TMRF_TIFROMWND)); RETURN(IntSetTimer(Window, nIDEvent, uElapse, lpTimerFunc, TMRF_TIFROMWND));
@ -644,12 +644,12 @@ NtUserKillTimer
UINT_PTR uIDEvent UINT_PTR uIDEvent
) )
{ {
PWND Window; PWND Window = NULL;
DECLARE_RETURN(BOOL); DECLARE_RETURN(BOOL);
TRACE("Enter NtUserKillTimer\n"); TRACE("Enter NtUserKillTimer\n");
UserEnterExclusive(); UserEnterExclusive();
Window = UserGetWindowObject(hWnd); if (hWnd) Window = UserGetWindowObject(hWnd);
UserLeave(); UserLeave();
RETURN(IntKillTimer(Window, uIDEvent, FALSE)); RETURN(IntKillTimer(Window, uIDEvent, FALSE));