[PATCH 3/3] reg: Fail if the separator for REG_MULTI_SZ is not one character in length

Hugh McMaster hugh.mcmaster at outlook.com
Wed Feb 17 06:19:00 CST 2016


---
 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;
-- 
1.9.1




More information about the wine-patches mailing list