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
42420f4d
Commit
42420f4d
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: 'export' sorts before 'import'.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d37375e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
reg.c
programs/reg/reg.c
+6
-6
No files found.
programs/reg/reg.c
View file @
42420f4d
...
...
@@ -306,8 +306,8 @@ static BOOL is_help_switch(const WCHAR *s)
enum
operations
{
REG_ADD
,
REG_DELETE
,
REG_IMPORT
,
REG_EXPORT
,
REG_IMPORT
,
REG_QUERY
,
REG_INVALID
};
...
...
@@ -318,16 +318,16 @@ static enum operations get_operation(const WCHAR *str, int *op_help)
static
const
WCHAR
add
[]
=
{
'a'
,
'd'
,
'd'
,
0
};
static
const
WCHAR
delete
[]
=
{
'd'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
static
const
WCHAR
import
[]
=
{
'i'
,
'm'
,
'p'
,
'o'
,
'r'
,
't'
,
0
};
static
const
WCHAR
export
[]
=
{
'e'
,
'x'
,
'p'
,
'o'
,
'r'
,
't'
,
0
};
static
const
WCHAR
import
[]
=
{
'i'
,
'm'
,
'p'
,
'o'
,
'r'
,
't'
,
0
};
static
const
WCHAR
query
[]
=
{
'q'
,
'u'
,
'e'
,
'r'
,
'y'
,
0
};
static
const
struct
op_info
op_array
[]
=
{
{
add
,
REG_ADD
,
STRING_ADD_USAGE
},
{
delete
,
REG_DELETE
,
STRING_DELETE_USAGE
},
{
import
,
REG_IMPORT
,
STRING_IMPORT_USAGE
},
{
export
,
REG_EXPORT
,
STRING_EXPORT_USAGE
},
{
import
,
REG_IMPORT
,
STRING_IMPORT_USAGE
},
{
query
,
REG_QUERY
,
STRING_QUERY_USAGE
},
{
NULL
,
-
1
,
0
}
};
...
...
@@ -389,12 +389,12 @@ int __cdecl wmain(int argc, WCHAR *argvW[])
return
0
;
}
if
(
op
==
REG_IMPORT
)
return
reg_import
(
argc
,
argvW
);
if
(
op
==
REG_EXPORT
)
return
reg_export
(
argc
,
argvW
);
if
(
op
==
REG_IMPORT
)
return
reg_import
(
argc
,
argvW
);
if
(
!
parse_registry_key
(
argvW
[
2
],
&
root
,
&
path
,
&
key_name
))
return
1
;
...
...
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