Author: tfaber
Date: Sun Apr 13 07:14:47 2014
New Revision: 62734
URL:
http://svn.reactos.org/svn/reactos?rev=62734&view=rev
Log:
[NTDLL_APITEST]
- Fix test failure on Windows. Based on patch by Víctor Martínez
ROSTESTS-132 #resolve
Modified:
trunk/rostests/apitests/ntdll/SystemInfo.c
Modified: trunk/rostests/apitests/ntdll/SystemInfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/SystemInfo…
==============================================================================
--- trunk/rostests/apitests/ntdll/SystemInfo.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/SystemInfo.c [iso-8859-1] Sun Apr 13 07:14:47 2014
@@ -26,6 +26,7 @@
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, 0);
+ CloseHandle(hToken);
}
@@ -36,8 +37,6 @@
SYSTEM_SET_TIME_ADJUST_INFORMATION SetTimeInfo;
NTSTATUS Status;
ULONG ReturnLength;
-
- GetPrivilege();
SetTimeInfo.TimeAdjustment = 0;
SetTimeInfo.Enable = 0;