reg: Avoid possible out-of-bounds memory access when a switch is only a forward slash or hyphen.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a88c35d0dc
commit
7d962327b1
@ -937,7 +937,7 @@ int wmain(int argc, WCHAR *argvW[])
|
|||||||
value_all = TRUE;
|
value_all = TRUE;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (ptr[1])
|
else if (!ptr[0] || ptr[1])
|
||||||
{
|
{
|
||||||
output_message(STRING_INVALID_CMDLINE);
|
output_message(STRING_INVALID_CMDLINE);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user