Commit 7d962327 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Avoid possible out-of-bounds memory access when a switch is only a forward slash or hyphen.

parent a88c35d0
......@@ -937,7 +937,7 @@ int wmain(int argc, WCHAR *argvW[])
value_all = TRUE;
continue;
}
else if (ptr[1])
else if (!ptr[0] || ptr[1])
{
output_message(STRING_INVALID_CMDLINE);
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment