msi: Use msi_alloc/free, not HeapAlloc/Free.
This commit is contained in:
parent
75c866ed58
commit
f3dae17cbb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue