Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
888b0b98
Commit
888b0b98
authored
Nov 09, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winepath: Fix --long option.
parent
4b88fd84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
winepath.c
programs/winepath/winepath.c
+5
-3
No files found.
programs/winepath/winepath.c
View file @
888b0b98
...
...
@@ -49,8 +49,10 @@ static int option(int shortopt, const WCHAR *longopt)
"
\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
(
Get
FullPathNameW
(
argv
[
i
],
MAX_PATH
,
dos_pathW
,
NULL
))
if
(
Get
LongPathNameW
(
argv
[
i
],
dos_pathW
,
MAX_PATH
))
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
dos_pathW
,
-
1
,
path
,
MAX_PATH
,
NULL
,
NULL
);
printf
(
"%s
\n
"
,
path
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment