shlwapi/tests: Fix a test on Vista.

This commit is contained in:
Paul Vriens 2008-08-26 15:52:35 +02:00 committed by Alexandre Julliard
parent 70c6a8ac62
commit 0bafb78755

View File

@ -913,7 +913,8 @@ static void test_PathCanonicalizeA(void)
ok(!res, "Expected failure\n"); ok(!res, "Expected failure\n");
todo_wine todo_wine
{ {
ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError()); ok(GetLastError() == 0xdeadbeef || GetLastError() == ERROR_FILENAME_EXCED_RANGE /* Vista */,
"Expected 0xdeadbeef or ERROR_FILENAME_EXCED_RANGE, got %d\n", GetLastError());
} }
ok(lstrlen(too_long) == LONG_LEN - 1, "Expected length LONG_LEN - 1, got %i\n", lstrlen(too_long)); ok(lstrlen(too_long) == LONG_LEN - 1, "Expected length LONG_LEN - 1, got %i\n", lstrlen(too_long));
} }