Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d37375e4
Commit
d37375e4
authored
Mar 18, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Use 'argvW' array naming in export.c.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4cbf4705
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
export.c
programs/reg/export.c
+5
-5
reg.h
programs/reg/reg.h
+1
-1
No files found.
programs/reg/export.c
View file @
d37375e4
...
...
@@ -360,7 +360,7 @@ static BOOL is_overwrite_switch(const WCHAR *s)
return
is_switch
(
s
,
'y'
);
}
int
reg_export
(
int
argc
,
WCHAR
*
argv
[])
int
reg_export
(
int
argc
,
WCHAR
*
argv
W
[])
{
HKEY
root
,
hkey
;
WCHAR
*
path
,
*
long_key
;
...
...
@@ -371,10 +371,10 @@ int reg_export(int argc, WCHAR *argv[])
if
(
argc
==
3
||
argc
>
5
)
goto
error
;
if
(
!
parse_registry_key
(
argv
[
2
],
&
root
,
&
path
,
&
long_key
))
if
(
!
parse_registry_key
(
argv
W
[
2
],
&
root
,
&
path
,
&
long_key
))
return
1
;
if
(
argc
==
5
&&
!
(
overwrite_file
=
is_overwrite_switch
(
argv
[
4
])))
if
(
argc
==
5
&&
!
(
overwrite_file
=
is_overwrite_switch
(
argv
W
[
4
])))
goto
error
;
if
(
RegOpenKeyExW
(
root
,
path
,
0
,
KEY_READ
,
&
hkey
))
...
...
@@ -383,7 +383,7 @@ int reg_export(int argc, WCHAR *argv[])
return
1
;
}
hFile
=
get_file_handle
(
argv
[
3
],
overwrite_file
);
hFile
=
get_file_handle
(
argv
W
[
3
],
overwrite_file
);
export_file_header
(
hFile
);
ret
=
export_registry_data
(
hFile
,
hkey
,
long_key
);
export_newline
(
hFile
);
...
...
@@ -395,6 +395,6 @@ int reg_export(int argc, WCHAR *argv[])
error:
output_message
(
STRING_INVALID_SYNTAX
);
output_message
(
STRING_FUNC_HELP
,
wcsupr
(
argv
[
1
]));
output_message
(
STRING_FUNC_HELP
,
wcsupr
(
argv
W
[
1
]));
return
1
;
}
programs/reg/reg.h
View file @
d37375e4
...
...
@@ -53,7 +53,7 @@ int reg_delete(HKEY root, WCHAR *path, WCHAR *key_name, WCHAR *value_name,
BOOL
value_empty
,
BOOL
value_all
,
BOOL
force
);
/* export.c */
int
reg_export
(
int
argc
,
WCHAR
*
argv
[]);
int
reg_export
(
int
argc
,
WCHAR
*
argv
W
[]);
/* import.c */
int
reg_import
(
int
argc
,
WCHAR
*
argvW
[]);
...
...
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