Alexandre Julliard : shell32/tests: Use the original path if GetLongPathNameA fails.

Alexandre Julliard julliard at winehq.org
Mon Jun 23 16:03:35 CDT 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jun 23 17:22:01 2008 +0200

shell32/tests: Use the original path if GetLongPathNameA fails.

---

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

diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index 5cbd8bf..54bb291 100644
--- a/dlls/shell32/tests/shelllink.c
+++ b/dlls/shell32/tests/shelllink.c
@@ -540,7 +540,7 @@ static void test_load_save(void)
         *p='\0';
 
     /* IShellLink returns path in long form */
-    pGetLongPathNameA(mypath, realpath, MAX_PATH);
+    if (!pGetLongPathNameA(mypath, realpath, MAX_PATH)) strcpy( realpath, mypath );
 
     /* Overwrite the existing lnk file and point it to existing files */
     desc.description="test 2";




More information about the wine-cvs mailing list