Commit c2f5442f authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

kernel32/tests: Skip some tests if needed (WinXP Home).

parent 0c67d1bd
......@@ -1026,7 +1026,15 @@ static void test_GetLongPathNameA(void)
lstrcatA(longpath, strchr(temppath, '\\') + 1);
/* NULL test */
SetLastError(0xdeadbeef);
length = pGetLongPathNameA(unc_short, NULL, 0);
if (length == 0 && GetLastError() == ERROR_BAD_NETPATH)
{
/* Seen on Window XP Home */
win_skip("UNC with computername is not supported\n");
DeleteFileA(tempfile);
return;
}
explength = lstrlenA(longpath) + 1;
todo_wine
ok(length == explength, "Wrong length %d, expected %d\n", length, explength);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment