user32/tests: Don't crash on Win95.

This commit is contained in:
Paul Vriens 2008-11-20 11:42:35 +01:00 committed by Alexandre Julliard
parent 4f14b030a6
commit bc3484bc20
1 changed files with 11 additions and 3 deletions

View File

@ -3361,9 +3361,17 @@ static void test_params(void)
INT rc; INT rc;
/* Just a param check */ /* Just a param check */
SetLastError(0xdeadbeef); if (pGetMonitorInfoA)
rc = GetWindowText(hwndMain2, NULL, 1024); {
ok( rc==0, "GetWindowText: rc=%d err=%d\n",rc,GetLastError()); 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); SetLastError(0xdeadbeef);
hwnd=CreateWindow("LISTBOX", "TestList", hwnd=CreateWindow("LISTBOX", "TestList",