Commit 842ffc35 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Use msi_alloc_zero instead of a helper function that sets everything to zero.

parent 988509e1
......@@ -354,23 +354,6 @@ static VOID set_file_source(MSIPACKAGE* package, MSIFILE* file, LPCWSTR path)
file->SourcePath = build_directory_name(2, path, file->File);
}
static struct media_info *create_media_info( void )
{
struct media_info *mi;
mi = msi_alloc( sizeof *mi );
if (mi)
{
mi->last_sequence = 0;
mi->last_volume = NULL;
mi->last_path = NULL;
mi->count = 0;
mi->source[0] = 0;
}
return mi;
}
static void free_media_info( struct media_info *mi )
{
msi_free( mi->last_path );
......@@ -670,7 +653,7 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package)
*/
msi_create_component_directories( package );
mi = create_media_info();
mi = msi_alloc_zero( sizeof(struct media_info) );
/* Pass 2 */
LIST_FOR_EACH_ENTRY( file, &package->files, MSIFILE, entry )
......
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