Commit 8943fcbc authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

uninstaller: Don't overallocate in FetchFromRootKey.

parent 4569157b
......@@ -258,7 +258,7 @@ static int FetchFromRootKey(HKEY root)
type == REG_DWORD && value == 1)
{
command = HeapAlloc(GetProcessHeap(), 0,
(lstrlenW(L"msiexec /x%s") + lstrlenW(subKeyName)) * sizeof(WCHAR));
sizeof(L"msiexec /x") + wcslen(subKeyName) * sizeof(WCHAR));
wsprintfW(command, L"msiexec /x%s", subKeyName);
}
else if (!RegQueryValueExW(hkeyApp, L"UninstallString", NULL, NULL, NULL, &uninstlen))
......
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