msi: Avoid loading cabinet streams more than once.
This commit is contained in:
parent
0c43024af7
commit
395479f0d1
|
@ -2114,6 +2114,8 @@ static UINT load_all_media( MSIPACKAGE *package )
|
||||||
MSIQUERY *view;
|
MSIQUERY *view;
|
||||||
UINT r;
|
UINT r;
|
||||||
|
|
||||||
|
if (!list_empty( &package->cabinet_streams )) return ERROR_SUCCESS;
|
||||||
|
|
||||||
r = MSI_DatabaseOpenViewW( package->db, query, &view );
|
r = MSI_DatabaseOpenViewW( package->db, query, &view );
|
||||||
if (r != ERROR_SUCCESS) return ERROR_SUCCESS;
|
if (r != ERROR_SUCCESS) return ERROR_SUCCESS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue