mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +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
|
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));
|
||||||
|
|
Loading…
Reference in a new issue