Commit 458fcf4a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

uninstaller: Fix a leak.

parent 60001e1c
......@@ -209,8 +209,12 @@ static int FetchFromRootKey(HKEY root)
command = HeapAlloc(GetProcessHeap(), 0, uninstlen);
RegQueryValueExW(hkeyApp, UninstallCommandlineW, 0, 0, (LPBYTE)command, &uninstlen);
}
else continue;
else
{
RegCloseKey(hkeyApp);
sizeOfSubKeyName = 255;
continue;
}
numentries++;
entries = HeapReAlloc(GetProcessHeap(), 0, entries, numentries*sizeof(uninst_entry));
entries[numentries-1].root = root;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment