shlwapi/tests: Fix a test on Vista.

This commit is contained in:
Paul Vriens 2008-06-24 19:01:33 +02:00 committed by Alexandre Julliard
parent c7ffd4fab9
commit f88a3c569e
1 changed files with 6 additions and 2 deletions

View File

@ -537,9 +537,13 @@ static void test_PathCombineA(void)
SetLastError(0xdeadbeef);
lstrcpyA(dest, "control");
str = PathCombineA(dest, "relative\\dir", "\\one\\two\\three\\");
ok(str == dest, "Expected str == dest, got %p\n", str);
ok(!lstrcmp(str, "one\\two\\three\\"), "Expected one\\two\\three\\, got %s\n", str);
ok(GetLastError() == 0xdeadbeef, "Expected 0xdeadbeef, got %d\n", GetLastError());
/* Vista fails which probably makes sense as PathCombineA expects an absolute dir */
if (str)
{
ok(str == dest, "Expected str == dest, got %p\n", str);
ok(!lstrcmp(str, "one\\two\\three\\"), "Expected one\\two\\three\\, got %s\n", str);
}
/* try forward slashes */
SetLastError(0xdeadbeef);