mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 14:23:41 +00:00
[WINESYNC] reg: Abort 'delete' operation when parsing command-line arguments that are not switches.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 51e83dec2959ce332264223832abc1a5f09dbf34 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
parent
0a5bdf825b
commit
fa6d473e3d
2 changed files with 32 additions and 30 deletions
|
@ -118,9 +118,12 @@ int reg_delete(int argc, WCHAR *argvW[])
|
|||
|
||||
for (i = 3; i < argc; i++)
|
||||
{
|
||||
if (argvW[i][0] == '/' || argvW[i][0] == '-')
|
||||
{
|
||||
WCHAR *str = &argvW[i][1];
|
||||
WCHAR *str;
|
||||
|
||||
if (argvW[i][0] != '/' && argvW[i][0] != '-')
|
||||
goto invalid;
|
||||
|
||||
str = &argvW[i][1];
|
||||
|
||||
if (!lstrcmpiW(str, L"va"))
|
||||
{
|
||||
|
@ -151,7 +154,6 @@ int reg_delete(int argc, WCHAR *argvW[])
|
|||
goto invalid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((value_name && value_empty) || (value_name && value_all) || (value_empty && value_all))
|
||||
goto invalid;
|
||||
|
|
|
@ -4,4 +4,4 @@ directories:
|
|||
files:
|
||||
programs/reg/resource.h: base/applications/cmdutils/reg/resource.h
|
||||
tags:
|
||||
wine: b2ead1ffcc8d28b488b561e8c5a9e3cc964699a3
|
||||
wine: 51e83dec2959ce332264223832abc1a5f09dbf34
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue