Commit fb296d12 authored by Joris Huizer's avatar Joris Huizer Committed by Alexandre Julliard

kernel32/tests: Don't test function directly when reporting GetLastError().

parent 922d1d88
......@@ -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);
......
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