Commit 46bdc153 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

reg: Fail if /s is used without an accompanying argument.

parent 6ef5ae80
......@@ -576,7 +576,16 @@ int wmain(int argc, WCHAR *argvW[])
else if (!lstrcmpiW(argvW[i], slashTW))
type = argvW[++i];
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))
{
if (!(data = argvW[++i]))
......
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