shell32/tests: GetLongPathNameA is not implemented on win95.

This commit is contained in:
Paul Vriens 2008-02-13 17:36:02 +01:00 committed by Alexandre Julliard
parent 1ce8ca4d8d
commit ad711256a4
1 changed files with 6 additions and 0 deletions

View File

@ -565,6 +565,11 @@ static void test_load_save(void)
/* Create a temporary non-executable file */
r=GetTempPath(sizeof(mypath), mypath);
ok(r<sizeof(mypath), "GetTempPath failed (%d), err %d\n", r, GetLastError());
if (!pGetLongPathNameA)
{
skip("GetLongPathNameA is not available\n");
goto cleanup;
}
r=pGetLongPathNameA(mypath, mydir, sizeof(mydir));
ok(r<sizeof(mydir), "GetLongPathName failed (%d), err %d\n", r, GetLastError());
p=strrchr(mydir, '\\');
@ -597,6 +602,7 @@ static void test_load_save(void)
* represented as a path.
*/
cleanup:
/* DeleteFileW is not implemented on Win9x */
r=DeleteFileA("c:\\test.lnk");
ok(r, "failed to delete link (%d)\n", GetLastError());