Paul Vriens : user32/tests: Don't crash on Win95.

Alexandre Julliard julliard at winehq.org
Thu Nov 20 08:20:34 CST 2008


Module: wine
Branch: master
Commit: bc3484bc208fb9e89bbed31d74cc1092b242d27b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc3484bc208fb9e89bbed31d74cc1092b242d27b

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Nov 20 11:42:35 2008 +0100

user32/tests: Don't crash on Win95.

---

 dlls/user32/tests/win.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index e8ee9d9..d1bf206 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -3361,9 +3361,17 @@ static void test_params(void)
     INT rc;
 
     /* Just a param check */
-    SetLastError(0xdeadbeef);
-    rc = GetWindowText(hwndMain2, NULL, 1024);
-    ok( rc==0, "GetWindowText: rc=%d err=%d\n",rc,GetLastError());
+    if (pGetMonitorInfoA)
+    {
+        SetLastError(0xdeadbeef);
+        rc = GetWindowText(hwndMain2, NULL, 1024);
+        ok( rc==0, "GetWindowText: rc=%d err=%d\n",rc,GetLastError());
+    }
+    else
+    {
+        /* Skips actually on Win95 and NT4 */
+        win_skip("Test would crash on Win95\n");
+    }
 
     SetLastError(0xdeadbeef);
     hwnd=CreateWindow("LISTBOX", "TestList",




More information about the wine-cvs mailing list