[user/tests/winstation.c] WindowStations calls are not implemented
on win9x
Paul Vriens
Paul.Vriens at xs4all.nl
Sat Jul 16 15:07:57 CDT 2005
Hi,
the subject says it all. There are exports for these calls so we have to
check GetLastError().
Changelog
Don't run tests on platforms that don't support WindowStation calls
Cheers,
Paul
Index: dlls/user/tests/winstation.c
===================================================================
RCS file: /home/wine/wine/dlls/user/tests/winstation.c,v
retrieving revision 1.5
diff -u -p -r1.5 winstation.c
--- dlls/user/tests/winstation.c 28 Jun 2005 19:37:52 -0000 1.5
+++ dlls/user/tests/winstation.c 16 Jul 2005 20:04:50 -0000
@@ -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();
}
More information about the wine-patches
mailing list