shell32/tests: Use the original path if GetLongPathNameA fails.
authorAlexandre Julliard <julliard@winehq.org>
Mon, 23 Jun 2008 15:22:01 +0000 (17:22 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 23 Jun 2008 15:22:01 +0000 (17:22 +0200)
dlls/shell32/tests/shelllink.c

index 5cbd8bfcd71390ba1d6ac24ceb5df97c3ebcd5c4..54bb291593854fb2396d5cd296bc335bd9b78a7e 100644 (file)
@@ -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";