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
2864105e
Commit
2864105e
authored
Jun 03, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Jun 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Make help for registry operations common in wmain.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
45acfd9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
18 deletions
+10
-18
reg.c
programs/reg/reg.c
+10
-18
No files found.
programs/reg/reg.c
View file @
2864105e
...
...
@@ -956,18 +956,22 @@ int wmain(int argc, WCHAR *argvW[])
output_message
(
STRING_FUNC_HELP
,
struprW
(
argvW
[
1
]));
return
1
;
}
else
if
(
show_op_help
)
{
if
(
op
==
REG_ADD
)
output_message
(
STRING_ADD_USAGE
);
else
if
(
op
==
REG_DELETE
)
output_message
(
STRING_DELETE_USAGE
);
else
output_message
(
STRING_QUERY_USAGE
);
return
0
;
}
if
(
op
==
REG_ADD
)
{
WCHAR
*
key_name
,
*
value_name
=
NULL
,
*
type
=
NULL
,
separator
=
'\0'
,
*
data
=
NULL
;
BOOL
value_empty
=
FALSE
,
force
=
FALSE
;
if
(
show_op_help
)
{
output_message
(
STRING_ADD_USAGE
);
return
0
;
}
key_name
=
argvW
[
2
];
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
...
...
@@ -1013,12 +1017,6 @@ int wmain(int argc, WCHAR *argvW[])
WCHAR
*
key_name
,
*
value_name
=
NULL
;
BOOL
value_empty
=
FALSE
,
value_all
=
FALSE
,
force
=
FALSE
;
if
(
show_op_help
)
{
output_message
(
STRING_DELETE_USAGE
);
return
0
;
}
key_name
=
argvW
[
2
];
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
...
...
@@ -1044,12 +1042,6 @@ int wmain(int argc, WCHAR *argvW[])
WCHAR
*
key_name
,
*
value_name
=
NULL
;
BOOL
value_empty
=
FALSE
,
recurse
=
FALSE
;
if
(
show_op_help
)
{
output_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