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