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

This commit is contained in:
Joris Huizer 2011-02-04 16:49:14 +01:00 committed by Alexandre Julliard
parent 922d1d88e8
commit fb296d1201

View File

@ -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);