SHELL32/tests: don't segfault on win98
Saulius Krasuckas
saulius2 at ar.fi.lt
Tue Nov 8 16:28:50 CST 2005
Log message:
Saulius Krasuckas <saulius.krasuckas at ieee.org>
Disable code that segfaults on Win98 SE.
Index: dlls/shell32/tests/shlfolder.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/tests/shlfolder.c,v
retrieving revision 1.42
diff -p -u -r1.42 shlfolder.c
--- dlls/shell32/tests/shlfolder.c 5 Nov 2005 10:44:28 -0000 1.42
+++ dlls/shell32/tests/shlfolder.c 8 Nov 2005 17:37:49 -0000
@@ -267,8 +267,11 @@ static void test_BindToObject(void)
hr = IShellFolder_BindToObject(psfMyComputer, pidlEmpty, NULL, &IID_IShellFolder, (LPVOID*)&psfChild);
ok (hr == E_INVALIDARG, "MyComputers's BindToObject should fail, when called with empty pidl! hr = %08lx\n", hr);
+#if 0
+ /* this call segfaults on 98SE */
hr = IShellFolder_BindToObject(psfMyComputer, NULL, NULL, &IID_IShellFolder, (LPVOID*)&psfChild);
ok (hr == E_INVALIDARG, "MyComputers's BindToObject should fail, when called with NULL pidl! hr = %08lx\n", hr);
+#endif
cChars = GetSystemDirectoryA(szSystemDir, MAX_PATH);
ok (cChars > 0 && cChars < MAX_PATH, "GetSystemDirectoryA failed! LastError: %08lx\n", GetLastError());
@@ -295,9 +298,12 @@ static void test_BindToObject(void)
ok (hr == E_INVALIDARG,
"FileSystem ShellFolder's BindToObject should fail, when called with empty pidl! hr = %08lx\n", hr);
+#if 0
+ /* this call segfaults on 98SE */
hr = IShellFolder_BindToObject(psfSystemDir, NULL, NULL, &IID_IShellFolder, (LPVOID*)&psfChild);
ok (hr == E_INVALIDARG,
"FileSystem ShellFolder's BindToObject should fail, when called with NULL pidl! hr = %08lx\n", hr);
+#endif
IShellFolder_Release(psfSystemDir);
}
More information about the wine-patches
mailing list