Paul Vriens : shell32/tests: GetLongPathNameA is not implemented on win95.

Alexandre Julliard julliard at winehq.org
Fri Feb 15 05:35:49 CST 2008


Module: wine
Branch: master
Commit: ad711256a4a81e1218ee5869a236bde34edb9489
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ad711256a4a81e1218ee5869a236bde34edb9489

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Wed Feb 13 17:36:02 2008 +0100

shell32/tests: GetLongPathNameA is not implemented on win95.

---

 dlls/shell32/tests/shelllink.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index e94dc7d..f5a0dac 100644
--- a/dlls/shell32/tests/shelllink.c
+++ b/dlls/shell32/tests/shelllink.c
@@ -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());




More information about the wine-cvs mailing list