X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=blobdiff_plain;f=lib%2Fuser32%2Fmisc%2Ftimer.c;fp=lib%2Fuser32%2Fmisc%2Ftimer.c;h=e41bdf3058db5f7c92943729e7adebcc7cd60d14;hp=923d9c22f3da04617140323f12ab618d6a1891a7;hb=7c0cf90e3b750f1f0dc83b2eec9e5c68a512c30f;hpb=ee8b63255465d8c28be3e7bd11628015708fc1ab diff --git a/lib/user32/misc/timer.c b/lib/user32/misc/timer.c index 923d9c2..e41bdf3 100644 --- a/lib/user32/misc/timer.c +++ b/lib/user32/misc/timer.c @@ -35,27 +35,22 @@ /* FUNCTIONS *****************************************************************/ +/* + * @implemented + */ WINBOOL STDCALL KillTimer( HWND hWnd, UINT_PTR IDEvent) { - - NTSTATUS Status; - - Status = NtUserKillTimer(hWnd, IDEvent); - - if (!NT_SUCCESS(Status)) - { - RtlNtStatusToDosError(Status); - return FALSE; - } - - return TRUE; - + return NtUserKillTimer(hWnd, IDEvent); } + +/* + * @implemented + */ UINT_PTR STDCALL SetTimer( @@ -64,19 +59,6 @@ SetTimer( UINT Period, TIMERPROC TimerFunc) { - NTSTATUS Status; - - Status = NtUserSetTimer(hWnd, &IDEvent, Period, TimerFunc); - - if (!NT_SUCCESS(Status)) - { - RtlNtStatusToDosError(Status); - return FALSE; - } - - if (hWnd == NULL) - return IDEvent; - - return TRUE; + return NtUserSetTimer(hWnd, IDEvent, Period, TimerFunc); }