Commit c7f0777f authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

advapi32/tests: Properly restore privileges in test_AdjustTokenPrivileges.

parent 0286b11c
......@@ -6081,7 +6081,7 @@ static void test_default_dacl_owner_sid(void)
static void test_AdjustTokenPrivileges(void)
{
TOKEN_PRIVILEGES tp, prev;
TOKEN_PRIVILEGES tp;
HANDLE token;
DWORD len;
LUID luid;
......@@ -6109,7 +6109,8 @@ static void test_AdjustTokenPrivileges(void)
tp.PrivilegeCount = 1;
tp.Privileges[0].Luid = luid;
tp.Privileges[0].Attributes = 0;
AdjustTokenPrivileges(token, FALSE, &tp, sizeof(TOKEN_PRIVILEGES), &prev, NULL);
ret = AdjustTokenPrivileges(token, FALSE, &tp, sizeof(TOKEN_PRIVILEGES), NULL, NULL);
ok(ret, "got %d\n", ret);
CloseHandle(token);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment