mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
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
Block a user