Commit 996e5d62 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

shell32: Stop shlfolder tests crashing under win98.

parent 185ad65d
......@@ -432,6 +432,12 @@ static void test_GetDisplayName(void)
if (SUCCEEDED(hr)) {
IShellFolder_Release(psfFile);
}
if(!pSHBindToParent)
{
skip("SHBindToParent is missing\n");
return;
}
/* Some tests for IShellFolder::SetNameOf */
hr = pSHBindToParent(pidlTestFile, &IID_IShellFolder, (VOID**)&psfPersonal, &pidlLast);
......@@ -474,8 +480,6 @@ static void test_GetDisplayName(void)
ok (!lstrcmpiW(wszTestFile, wszTestFile2), "SHGetPathFromIDListW returns incorrect path!\n");
}
if(!pSHBindToParent) return;
/* SHBindToParent fails, if called with a NULL PIDL. */
hr = pSHBindToParent(NULL, &IID_IShellFolder, (VOID**)&psfPersonal, &pidlLast);
ok (FAILED(hr), "SHBindToParent(NULL) should fail!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment