advapi32/tests: Fix invalid read in test.

This commit is contained in:
Nikolay Sivov 2011-08-06 13:33:38 +04:00 committed by Alexandre Julliard
parent c13bf5a58c
commit e717a78afe

View file

@ -3924,6 +3924,7 @@ static void test_CreateRestrictedToken(void)
/* disable a SID in new token */
sattr.Sid = token_groups->Groups[i].Sid;
sattr.Attributes = 0;
r_token = NULL;
ret = pCreateRestrictedToken(token, 0, 1, &sattr, 0, NULL, 0, NULL, &r_token);
todo_wine ok(ret, "got error %d\n", GetLastError());