Hugh McMaster : reg: Fail if the separator for REG_MULTI_SZ is not one character in length.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 17 11:15:04 CST 2016
Module: wine
Branch: master
Commit: 8a902f37618e42ff6e1e6ec82173b10fd3fcfac5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8a902f37618e42ff6e1e6ec82173b10fd3fcfac5
Author: Hugh McMaster <hugh.mcmaster at 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 at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
More information about the wine-cvs
mailing list