reg: Fail if the separator for REG_MULTI_SZ is not one character in length.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2016-02-17 23:41:07 +11:00 committed by Alexandre Julliard
parent 5a2ddc8d25
commit 8a902f3761
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ int wmain(int argc, WCHAR *argvW[])
{
WCHAR *ptr = argvW[++i];
if (!ptr)
if (!ptr || strlenW(ptr) != 1)
{
output_message(STRING_INVALID_CMDLINE);
return 1;