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
9939fd60
Commit
9939fd60
authored
Feb 28, 2010
by
Andrey Turkin
Committed by
Alexandre Julliard
Mar 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extrac32: Enhance command-line parsing.
parent
b4173d7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
extrac32.c
programs/extrac32/extrac32.c
+14
-7
No files found.
programs/extrac32/extrac32.c
View file @
9939fd60
...
...
@@ -105,10 +105,14 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
/* Get cabfile */
if
(
(
argv
[
i
][
0
]
!=
'/'
)
&&
!
cabfile
)
if
(
argv
[
i
][
0
]
!=
'/'
)
{
cabfile
=
argv
[
i
];
continue
;
if
(
!
cabfile
)
{
cabfile
=
argv
[
i
];
continue
;
}
else
break
;
}
/* Get parameters for commands */
check
=
toupperW
(
argv
[
i
][
1
]
);
...
...
@@ -127,11 +131,7 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
break
;
case
'C'
:
if
(
cmd
)
return
0
;
if
((
i
+
2
)
>=
argc
)
return
0
;
cmd
=
check
;
cabfile
=
argv
[
++
i
];
if
(
!
GetFullPathNameW
(
argv
[
++
i
],
MAX_PATH
,
path
,
NULL
))
return
0
;
break
;
case
'E'
:
case
'D'
:
...
...
@@ -146,6 +146,13 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
if
(
!
cabfile
)
return
0
;
if
(
cmd
==
'C'
)
{
if
((
i
+
1
)
!=
argc
)
return
0
;
if
(
!
GetFullPathNameW
(
argv
[
i
],
MAX_PATH
,
path
,
NULL
))
return
0
;
}
if
(
!
path
[
0
])
GetCurrentDirectoryW
(
MAX_PATH
,
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