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[]) ...@@ -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;
......
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