diff --git a/rostests/apitests/ntdll/SystemInfo.c b/rostests/apitests/ntdll/SystemInfo.c index 9a4eb2d801e..f93eee6743d 100644 --- a/rostests/apitests/ntdll/SystemInfo.c +++ b/rostests/apitests/ntdll/SystemInfo.c @@ -26,6 +26,7 @@ GetPrivilege() tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, 0); + CloseHandle(hToken); } @@ -37,8 +38,6 @@ Test_TimeAdjustment(void) NTSTATUS Status; ULONG ReturnLength; - GetPrivilege(); - SetTimeInfo.TimeAdjustment = 0; SetTimeInfo.Enable = 0;