Commit f3dae17c authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Use msi_alloc/free, not HeapAlloc/Free.

parent 75c866ed
......@@ -912,8 +912,7 @@ static UINT ACTION_AppSearchDr(MSIPACKAGE *package, LPWSTR *appValue,
msi_free(path);
if (parent)
{
path = HeapAlloc(GetProcessHeap(), 0, strlenW(parent) +
strlenW(expanded) + 1);
path = msi_alloc(strlenW(parent) + strlenW(expanded) + 1);
if (!path)
goto end;
strcpyW(path, parent);
......
......@@ -531,7 +531,7 @@ UINT WINAPI MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
r = msi_strcpy_to_awstring( val, szValue, pcchValueBuf );
HeapFree(GetProcessHeap(), 0, val);
msi_free(val);
return r;
}
......
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