shell32/tests: Vista returns E_INVALIDARG if the path sent to SetPath is invalid.
This commit is contained in:
parent
4140801e2d
commit
de08ba8332
|
@ -226,19 +226,19 @@ static void test_get_set(void)
|
||||||
ok(!lstrcmp(buffer, "C:\\nonexistent\\file"), "case doesn't match\n");
|
ok(!lstrcmp(buffer, "C:\\nonexistent\\file"), "case doesn't match\n");
|
||||||
|
|
||||||
r = IShellLinkA_SetPath(sl, "\"c:\\foo");
|
r = IShellLinkA_SetPath(sl, "\"c:\\foo");
|
||||||
ok(r==S_FALSE || r == S_OK, "SetPath failed (0x%08x)\n", r);
|
ok(r==S_FALSE || r == S_OK || r == E_INVALIDARG /* Vista */, "SetPath failed (0x%08x)\n", r);
|
||||||
|
|
||||||
r = IShellLinkA_SetPath(sl, "\"\"c:\\foo");
|
r = IShellLinkA_SetPath(sl, "\"\"c:\\foo");
|
||||||
ok(r==S_FALSE || r == S_OK, "SetPath failed (0x%08x)\n", r);
|
ok(r==S_FALSE || r == S_OK || r == E_INVALIDARG /* Vista */, "SetPath failed (0x%08x)\n", r);
|
||||||
|
|
||||||
r = IShellLinkA_SetPath(sl, "c:\\foo\"");
|
r = IShellLinkA_SetPath(sl, "c:\\foo\"");
|
||||||
ok(r==S_FALSE || r == S_OK, "SetPath failed (0x%08x)\n", r);
|
ok(r==S_FALSE || r == S_OK || r == E_INVALIDARG /* Vista */, "SetPath failed (0x%08x)\n", r);
|
||||||
|
|
||||||
r = IShellLinkA_SetPath(sl, "\"\"c:\\foo\"");
|
r = IShellLinkA_SetPath(sl, "\"\"c:\\foo\"");
|
||||||
ok(r==S_FALSE || r == S_OK, "SetPath failed (0x%08x)\n", r);
|
ok(r==S_FALSE || r == S_OK || r == E_INVALIDARG /* Vista */, "SetPath failed (0x%08x)\n", r);
|
||||||
|
|
||||||
r = IShellLinkA_SetPath(sl, "\"\"c:\\foo\"\"");
|
r = IShellLinkA_SetPath(sl, "\"\"c:\\foo\"\"");
|
||||||
ok(r==S_FALSE || r == S_OK, "SetPath failed (0x%08x)\n", r);
|
ok(r==S_FALSE || r == S_OK || r == E_INVALIDARG /* Vista */, "SetPath failed (0x%08x)\n", r);
|
||||||
|
|
||||||
/* Test Getting / Setting the arguments */
|
/* Test Getting / Setting the arguments */
|
||||||
strcpy(buffer,"garbage");
|
strcpy(buffer,"garbage");
|
||||||
|
|
Loading…
Reference in New Issue