advapi32/tests: Explicitly check return value of GetTokenInformation.

This commit is contained in:
Sebastian Lackner 2015-06-24 02:34:00 +02:00 committed by Alexandre Julliard
parent e9eec98d5c
commit a176655414
1 changed files with 2 additions and 1 deletions

View File

@ -4290,7 +4290,8 @@ static void test_GetSecurityInfo(void)
win_skip("Failed to get current user token\n");
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 );
user_sid = ((TOKEN_USER *)b)->User.Sid;