Commit f15af94d authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

advapi32: Test for OpenProcessToken with MAXIMUM_ALLOWED access.

parent 9c377f0e
......@@ -786,6 +786,18 @@ static void test_token_attr(void)
DWORD i, GLE;
LPSTR SidString;
/* cygwin-like use case */
ret = OpenProcessToken(GetCurrentProcess(), MAXIMUM_ALLOWED, &Token);
ok(ret, "OpenProcessToken failed with error %d\n", GetLastError());
if (ret)
{
BYTE buf[1024];
DWORD bufsize = sizeof(buf);
ret = GetTokenInformation(Token, TokenUser,(void*)buf, bufsize, &bufsize);
todo_wine ok(ret, "GetTokenInformation failed with error %d\n", GetLastError());
CloseHandle(Token);
}
if(!pConvertSidToStringSidA)
return;
......
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