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
a3dbe3cc
Commit
a3dbe3cc
authored
Jun 27, 2009
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jun 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Fix behavior when specifying the help flag.
parent
24c6f5cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
reg.c
programs/reg/reg.c
+21
-5
No files found.
programs/reg/reg.c
View file @
a3dbe3cc
...
...
@@ -357,11 +357,12 @@ int wmain(int argc, WCHAR *argvW[])
static
const
WCHAR
slashVW
[]
=
{
'/'
,
'v'
,
0
};
static
const
WCHAR
slashVAW
[]
=
{
'/'
,
'v'
,
'a'
,
0
};
static
const
WCHAR
slashVEW
[]
=
{
'/'
,
'v'
,
'e'
,
0
};
static
const
WCHAR
slashHelpW
[]
=
{
'/'
,
'?'
,
0
};
if
(
argc
<
2
)
if
(
argc
<
2
||
!
lstrcmpW
(
argvW
[
1
],
slashHelpW
)
)
{
reg_message
(
STRING_USAGE
);
return
1
;
return
0
;
}
if
(
!
lstrcmpiW
(
argvW
[
1
],
addW
))
...
...
@@ -371,9 +372,14 @@ int wmain(int argc, WCHAR *argvW[])
if
(
argc
<
3
)
{
reg_message
(
STRING_
ADD_USAG
E
);
reg_message
(
STRING_
INVALID_CMDLIN
E
);
return
1
;
}
else
if
(
argc
==
3
&&
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
))
{
reg_message
(
STRING_ADD_USAGE
);
return
0
;
}
key_name
=
argvW
[
2
];
for
(
i
=
1
;
i
<
argc
;
i
++
)
...
...
@@ -401,9 +407,14 @@ int wmain(int argc, WCHAR *argvW[])
if
(
argc
<
3
)
{
reg_message
(
STRING_
DELETE_USAG
E
);
reg_message
(
STRING_
INVALID_CMDLIN
E
);
return
1
;
}
else
if
(
argc
==
3
&&
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
))
{
reg_message
(
STRING_DELETE_USAGE
);
return
0
;
}
key_name
=
argvW
[
2
];
for
(
i
=
1
;
i
<
argc
;
i
++
)
...
...
@@ -426,9 +437,14 @@ int wmain(int argc, WCHAR *argvW[])
if
(
argc
<
3
)
{
reg_message
(
STRING_
QUERY_USAG
E
);
reg_message
(
STRING_
INVALID_CMDLIN
E
);
return
1
;
}
else
if
(
argc
==
3
&&
!
lstrcmpW
(
argvW
[
2
],
slashHelpW
))
{
reg_message
(
STRING_QUERY_USAGE
);
return
0
;
}
key_name
=
argvW
[
2
];
for
(
i
=
1
;
i
<
argc
;
i
++
)
...
...
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