diff --git a/winpr/libwinpr/synch/test/TestSynchWaitableTimerAPC.c b/winpr/libwinpr/synch/test/TestSynchWaitableTimerAPC.c index f21e7f3c5..257a7f41b 100644 --- a/winpr/libwinpr/synch/test/TestSynchWaitableTimerAPC.c +++ b/winpr/libwinpr/synch/test/TestSynchWaitableTimerAPC.c @@ -64,7 +64,7 @@ int TestSynchWaitableTimerAPC(int argc, char* argv[]) status = 0; cleanup: - if (hTime) + if (hTimer) CloseHandle(hTimer); if (g_Event) CloseHandle(g_Event);