Commit a1766554 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

advapi32/tests: Explicitly check return value of GetTokenInformation.

parent e9eec98d
...@@ -4290,7 +4290,8 @@ static void test_GetSecurityInfo(void) ...@@ -4290,7 +4290,8 @@ static void test_GetSecurityInfo(void)
win_skip("Failed to get current user token\n"); win_skip("Failed to get current user token\n");
return; return;
} }
GetTokenInformation(token, TokenUser, b, l, &l); bret = GetTokenInformation(token, TokenUser, b, l, &l);
ok(bret, "GetTokenInformation(TokenUser) failed with error %d\n", GetLastError());
CloseHandle( token ); CloseHandle( token );
user_sid = ((TOKEN_USER *)b)->User.Sid; user_sid = ((TOKEN_USER *)b)->User.Sid;
......
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