mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[NtUser] - Stop spurious window handle errors.
svn path=/trunk/; revision=57046
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user