Commit 7b156bf1 authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

advapi32: Skip token attribute testing if OpenProcessToken() is not implemented.

parent 18af8547
......@@ -703,11 +703,18 @@ static void test_token_attr(void)
TOKEN_GROUPS *Groups;
TOKEN_USER *User;
BOOL ret;
DWORD i;
LPTSTR SidString;
DWORD i, GLE;
LPSTR SidString;
ret = OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &Token);
ok(ret, "OpenProcessToken failed with error %ld\n", GetLastError());
GLE = GetLastError();
ok(ret || (GLE == ERROR_CALL_NOT_IMPLEMENTED),
"OpenProcessToken failed with error %ld\n", GLE);
if(!ret && (GLE == ERROR_CALL_NOT_IMPLEMENTED))
{
trace("OpenProcessToken() not implemented, skipping test_token_attr()\n");
return;
}
/* groups */
ret = GetTokenInformation(Token, TokenGroups, NULL, 0, &Size);
......
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