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
2c84ec7e
Commit
2c84ec7e
authored
Mar 26, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg: Fail if duplicate command-line switches are passed to 'reg query'.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8e7738be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
query.c
programs/reg/query.c
+2
-0
query.c
programs/reg/tests/query.c
+1
-1
No files found.
programs/reg/query.c
View file @
2c84ec7e
...
...
@@ -344,6 +344,7 @@ int reg_query(int argc, WCHAR *argvW[])
if
(
!
lstrcmpiW
(
str
,
L"ve"
))
{
if
(
value_empty
)
goto
invalid
;
value_empty
=
TRUE
;
continue
;
}
...
...
@@ -357,6 +358,7 @@ int reg_query(int argc, WCHAR *argvW[])
goto
invalid
;
break
;
case
's'
:
if
(
recurse
)
goto
invalid
;
recurse
=
TRUE
;
break
;
default:
...
...
programs/reg/tests/query.c
View file @
2c84ec7e
...
...
@@ -117,7 +117,7 @@ static void test_query(void)
"got exit code %d, expected 0
\n
"
,
r
);
run_reg_exe
(
"reg query HKCU
\\
"
KEY_BASE
" /s /s"
,
&
r
);
todo_wine
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
ok
(
r
==
REG_EXIT_FAILURE
,
"got exit code %d, expected 1
\n
"
,
r
);
/* Clean-up, then query */
delete_key
(
key
,
"subkey"
);
...
...
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