Kirill K. Smirnov : winecfg: Values list should be NULL-terminated.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Aug 7 08:26:25 CDT 2007


Module: wine
Branch: master
Commit: eebfb5c5a2b286e44599d69baa5b7f5d134924aa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eebfb5c5a2b286e44599d69baa5b7f5d134924aa

Author: Kirill K. Smirnov <lich at math.spbu.ru>
Date:   Mon Aug  6 19:07:31 2007 +0400

winecfg: Values list should be NULL-terminated.

---

 programs/winecfg/winecfg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/programs/winecfg/winecfg.c b/programs/winecfg/winecfg.c
index 1a19888..a3e5e07 100644
--- a/programs/winecfg/winecfg.c
+++ b/programs/winecfg/winecfg.c
@@ -638,6 +638,7 @@ char **enumerate_values(HKEY root, char *path)
                                 lstrlenW(wret[i]) + 1, NULL, NULL);
             HeapFree(GetProcessHeap(), 0, wret[i]);
         }
+        ret[len] = NULL;
     }
 
     HeapFree(GetProcessHeap(), 0, wpath);




More information about the wine-cvs mailing list