shlwapi/tests: Don't crash on IE5.
This commit is contained in:
parent
2266219ca6
commit
630c43ab28
|
@ -380,7 +380,9 @@ static void test_GetShellSecurityDescriptor(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
psd = pGetShellSecurityDescriptor(NULL, 2);
|
psd = pGetShellSecurityDescriptor(NULL, 2);
|
||||||
ok(psd==NULL, "GetShellSecurityDescriptor should fail\n");
|
ok(psd==NULL ||
|
||||||
|
broken(psd==INVALID_HANDLE_VALUE), /* IE5 */
|
||||||
|
"GetShellSecurityDescriptor should fail\n");
|
||||||
psd = pGetShellSecurityDescriptor(rgsup, 0);
|
psd = pGetShellSecurityDescriptor(rgsup, 0);
|
||||||
ok(psd==NULL, "GetShellSecurityDescriptor should fail\n");
|
ok(psd==NULL, "GetShellSecurityDescriptor should fail\n");
|
||||||
|
|
||||||
|
@ -392,6 +394,11 @@ static void test_GetShellSecurityDescriptor(void)
|
||||||
win_skip("GetShellSecurityDescriptor is not implemented\n");
|
win_skip("GetShellSecurityDescriptor is not implemented\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (psd==INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
win_skip("GetShellSecurityDescriptor is broken on IE5\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
ok(psd!=NULL, "GetShellSecurityDescriptor failed\n");
|
ok(psd!=NULL, "GetShellSecurityDescriptor failed\n");
|
||||||
if (psd!=NULL)
|
if (psd!=NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue