Skip to content

Commit d3b058d

Browse files
committed
[NTDLL_APITEST]
- Fix test failure on Windows. Based on patch by Víctor Martínez ROSTESTS-132 #resolve svn path=/trunk/; revision=62734
1 parent 87a883b commit d3b058d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rostests/apitests/ntdll/SystemInfo.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ GetPrivilege()
2626
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
2727

2828
AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, 0);
29+
CloseHandle(hToken);
2930
}
3031

3132

@@ -37,8 +38,6 @@ Test_TimeAdjustment(void)
3738
NTSTATUS Status;
3839
ULONG ReturnLength;
3940

40-
GetPrivilege();
41-
4241
SetTimeInfo.TimeAdjustment = 0;
4342
SetTimeInfo.Enable = 0;
4443

0 commit comments

Comments
 (0)