Francois Gouget : winepath: Fix --long option.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Nov 9 13:57:55 CST 2006


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

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Nov  9 15:36:12 2006 +0100

winepath: Fix --long option.

---

 programs/winepath/winepath.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c
index 9aef237..0fc4623 100644
--- a/programs/winepath/winepath.c
+++ b/programs/winepath/winepath.c
@@ -49,8 +49,10 @@ static int option(int shortopt, const WC
     "\n"
     "  -u, --unix    converts a Windows path to a Unix path\n"
     "  -w, --windows converts a Unix path to a long Windows path\n"
-    "  -l, --long    converts a short Windows path to the long format\n"
-    "  -s, --short   converts a long Windows path to the short format\n"
+    "  -l, --long    converts the short Windows path of an existing file or\n"
+    "                directory to the long format\n"
+    "  -s, --short   converts the long Windows path of an existing file or\n"
+    "                directory to the short format\n"
     "  -h, --help    output this help message and exit\n"
     "  -v, --version output version information and exit\n"
     "\n"
@@ -177,7 +179,7 @@ int wmain(int argc, const WCHAR *argv[])
     {
         *path='\0';
         if (outputformats & LONGFORMAT) {
-            if (GetFullPathNameW(argv[i], MAX_PATH, dos_pathW, NULL))
+            if (GetLongPathNameW(argv[i], dos_pathW, MAX_PATH))
                 WideCharToMultiByte(CP_UNIXCP, 0, dos_pathW, -1, path, MAX_PATH, NULL, NULL);
             printf("%s\n", path);
         }




More information about the wine-cvs mailing list