kernel32/tests: Allow ERROR_ACCESS_DENIED for GetThreadContext.
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
54f7a63845
commit
59504204c3
|
@ -1083,10 +1083,10 @@ static void test_SetThreadContext(void)
|
|||
ctx.ContextFlags = CONTEXT_FULL;
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = GetThreadContext( thread, &ctx );
|
||||
ok( (!ret && (GetLastError() == ERROR_GEN_FAILURE)) ||
|
||||
ok( (!ret && ((GetLastError() == ERROR_GEN_FAILURE) || (GetLastError() == ERROR_ACCESS_DENIED))) ||
|
||||
(!ret && broken(GetLastError() == ERROR_INVALID_HANDLE)) || /* win2k */
|
||||
broken(ret), /* 32bit application on NT 5.x 64bit */
|
||||
"got %d with %u (expected FALSE with ERROR_GEN_FAILURE)\n",
|
||||
"got %d with %u (expected FALSE with ERROR_GEN_FAILURE or ERROR_ACCESS_DENIED)\n",
|
||||
ret, GetLastError() );
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
|
|
Loading…
Reference in New Issue