From 8a902f37618e42ff6e1e6ec82173b10fd3fcfac5 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Wed, 17 Feb 2016 23:41:07 +1100 Subject: [PATCH] reg: Fail if the separator for REG_MULTI_SZ is not one character in length. Signed-off-by: Hugh McMaster Signed-off-by: Alexandre Julliard --- programs/reg/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/reg/reg.c b/programs/reg/reg.c index bcd812abd88..7dc624abdeb 100644 --- a/programs/reg/reg.c +++ b/programs/reg/reg.c @@ -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;