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

This commit is contained in:
Mike McCormack 2006-07-27 11:05:45 +09:00 committed by Alexandre Julliard
parent 75c866ed58
commit f3dae17cbb
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -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;
}