advapi32: Correct tests under WOW64.

This commit is contained in:
Alistair Leslie-Hughes 2012-02-12 11:22:03 +11:00 committed by Alexandre Julliard
parent 3d4a4dae70
commit 02b3700779
1 changed files with 4 additions and 2 deletions

View File

@ -1455,9 +1455,11 @@ static void test_token_attr(void)
Size = 0;
ret = GetTokenInformation(Token, TokenGroups, Groups, Size2, &Size);
ok(Size > 1, "got %d\n", Size);
ok(!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER,
ok((!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER) || broken(ret) /* wow64 */,
"%d with error %d\n", ret, GetLastError());
if(!ret)
ok(*((BYTE*)Groups) == 0xcc, "buffer altered\n");
HeapFree(GetProcessHeap(), 0, Groups);
SetLastError(0xdeadbeef);