mirror of
https://github.com/reactos/wine.git
synced 2024-12-13 14:26:40 +00:00
reg: Fail if /s is used without an accompanying argument.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6ef5ae801d
commit
46bdc153f1
@ -576,7 +576,16 @@ int wmain(int argc, WCHAR *argvW[])
|
|||||||
else if (!lstrcmpiW(argvW[i], slashTW))
|
else if (!lstrcmpiW(argvW[i], slashTW))
|
||||||
type = argvW[++i];
|
type = argvW[++i];
|
||||||
else if (!lstrcmpiW(argvW[i], slashSW))
|
else if (!lstrcmpiW(argvW[i], slashSW))
|
||||||
separator = argvW[++i][0];
|
{
|
||||||
|
WCHAR *ptr = argvW[++i];
|
||||||
|
|
||||||
|
if (!ptr)
|
||||||
|
{
|
||||||
|
output_message(STRING_INVALID_CMDLINE);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
separator = ptr[0];
|
||||||
|
}
|
||||||
else if (!lstrcmpiW(argvW[i], slashDW))
|
else if (!lstrcmpiW(argvW[i], slashDW))
|
||||||
{
|
{
|
||||||
if (!(data = argvW[++i]))
|
if (!(data = argvW[++i]))
|
||||||
|
Loading…
Reference in New Issue
Block a user