Module: wine Branch: master Commit: 8a902f37618e42ff6e1e6ec82173b10fd3fcfac5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8a902f37618e42ff6e1e6ec821...
Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Wed Feb 17 23:41:07 2016 +1100
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
---
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 bcd812a..7dc624a 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;