mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[NtUser] - Stop spurious window handle errors.
svn path=/trunk/; revision=57046
This commit is contained in:
parent
a90234288c
commit
ab2b99cc4f
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue