mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 17:01:53 +00:00
[WINESYNC] 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> wine commit id 2c84ec7ee04ab03883907691f115e01a7165b6e9 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
parent
354e15827d
commit
8dc46f32b0
3 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue