msi: Always delete temp files after creating them.

This commit is contained in:
Mike McCormack 2006-11-14 12:42:06 +09:00 committed by Alexandre Julliard
parent 6914c4749e
commit f241daef54

View file

@ -505,10 +505,10 @@ static HANDLE msi_load_image( MSIDATABASE *db, LPCWSTR name, UINT type,
if( r == ERROR_SUCCESS )
{
himage = LoadImageW( 0, tmp, type, cx, cy, flags );
DeleteFileW( tmp );
}
msiobj_release( &rec->hdr );
}
DeleteFileW( tmp );
msi_free( tmp );
return himage;