shell32/tests: Fix test failure on NT4.

This commit is contained in:
Paul Vriens 2009-06-04 16:38:00 +02:00 committed by Alexandre Julliard
parent 1a0a47d60c
commit b7aa196449

View File

@ -677,6 +677,8 @@ static void test_filename(void)
test=filename_tests; test=filename_tests;
while (test->basename) while (test->basename)
{ {
BOOL quotedfile = FALSE;
sprintf(filename, test->basename, tmpdir); sprintf(filename, test->basename, tmpdir);
if (strchr(filename, '/')) if (strchr(filename, '/'))
{ {
@ -695,6 +697,8 @@ static void test_filename(void)
else else
{ {
char quoted[MAX_PATH + 2]; char quoted[MAX_PATH + 2];
quotedfile = TRUE;
sprintf(quoted, "\"%s\"", filename); sprintf(quoted, "\"%s\"", filename);
rc=shell_execute(test->verb, quoted, NULL, NULL); rc=shell_execute(test->verb, quoted, NULL, NULL);
} }
@ -702,7 +706,9 @@ static void test_filename(void)
rc=33; rc=33;
if ((test->todo & 0x1)==0) if ((test->todo & 0x1)==0)
{ {
ok(rc==test->rc, "%s failed: rc=%d err=%d\n", shell_call, ok(rc==test->rc ||
broken(quotedfile && rc == 2), /* NT4 */
"%s failed: rc=%d err=%d\n", shell_call,
rc, GetLastError()); rc, GetLastError());
} }
else todo_wine else todo_wine