[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
)
{
PWND Window;
PWND Window = NULL;
DECLARE_RETURN(UINT_PTR);
TRACE("Enter NtUserSetTimer\n");
UserEnterExclusive();
Window = UserGetWindowObject(hWnd);
if (hWnd) Window = UserGetWindowObject(hWnd);
UserLeave();
RETURN(IntSetTimer(Window, nIDEvent, uElapse, lpTimerFunc, TMRF_TIFROMWND));
@ -644,12 +644,12 @@ NtUserKillTimer
UINT_PTR uIDEvent
)
{
PWND Window;
PWND Window = NULL;
DECLARE_RETURN(BOOL);
TRACE("Enter NtUserKillTimer\n");
UserEnterExclusive();
Window = UserGetWindowObject(hWnd);
if (hWnd) Window = UserGetWindowObject(hWnd);
UserLeave();
RETURN(IntKillTimer(Window, uIDEvent, FALSE));