From d3b058d4eb0a90cc5fbc8f0a7e4ae4d30709c111 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 13 Apr 2014 07:14:47 +0000 Subject: [PATCH] =?UTF-8?q?[NTDLL=5FAPITEST]=20-=20Fix=20test=20failure=20?= =?UTF-8?q?on=20Windows.=20Based=20on=20patch=20by=20V=C3=ADctor=20Mart?= =?UTF-8?q?=C3=ADnez=20ROSTESTS-132=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=62734 --- rostests/apitests/ntdll/SystemInfo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;