From eebfb5c5a2b286e44599d69baa5b7f5d134924aa Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Mon, 6 Aug 2007 19:07:31 +0400 Subject: [PATCH] winecfg: Values list should be NULL-terminated. --- programs/winecfg/winecfg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/winecfg/winecfg.c b/programs/winecfg/winecfg.c index 1a198887c11..a3e5e078508 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);