kernel32/tests: Don't test function directly when reporting GetLastError().
This commit is contained in:
parent
922d1d88e8
commit
fb296d1201
|
@ -944,7 +944,8 @@ static void test_SetThreadContext(void)
|
|||
ctx.Esp -= 2 * sizeof(int *);
|
||||
ctx.Eip = (DWORD)set_test_val;
|
||||
SetLastError(0xdeadbeef);
|
||||
ok( SetThreadContext( thread, &ctx ), "SetThreadContext failed : (%d)\n", GetLastError() );
|
||||
ret = SetThreadContext( thread, &ctx );
|
||||
ok( ret, "SetThreadContext failed : (%d)\n", GetLastError() );
|
||||
}
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
|
|
Loading…
Reference in New Issue