Commit 02b37007 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

advapi32: Correct tests under WOW64.

parent 3d4a4dae
...@@ -1455,9 +1455,11 @@ static void test_token_attr(void) ...@@ -1455,9 +1455,11 @@ static void test_token_attr(void)
Size = 0; Size = 0;
ret = GetTokenInformation(Token, TokenGroups, Groups, Size2, &Size); ret = GetTokenInformation(Token, TokenGroups, Groups, Size2, &Size);
ok(Size > 1, "got %d\n", 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()); "%d with error %d\n", ret, GetLastError());
ok(*((BYTE*)Groups) == 0xcc, "buffer altered\n"); if(!ret)
ok(*((BYTE*)Groups) == 0xcc, "buffer altered\n");
HeapFree(GetProcessHeap(), 0, Groups); HeapFree(GetProcessHeap(), 0, Groups);
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
......
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