Don't run tests on platforms that don't support WindowStation calls.

This commit is contained in:
Paul Vriens 2005-07-18 09:08:58 +00:00 committed by Alexandre Julliard
parent 463a655c4a
commit dcb67841d2
1 changed files with 10 additions and 0 deletions

View File

@ -203,5 +203,15 @@ static void test_handles(void)
START_TEST(winstation)
{
/* Check whether this platform supports WindowStation calls */
SetLastError( 0xdeadbeef );
GetProcessWindowStation();
if (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
trace("WindowStation calls not supported on this platform\n");
return;
}
test_handles();
}