msi: Avoid loading cabinet streams more than once.

This commit is contained in:
Hans Leidekker 2011-05-06 14:39:42 +02:00 committed by Alexandre Julliard
parent 0c43024af7
commit 395479f0d1
1 changed files with 2 additions and 0 deletions

View File

@ -2114,6 +2114,8 @@ static UINT load_all_media( MSIPACKAGE *package )
MSIQUERY *view;
UINT r;
if (!list_empty( &package->cabinet_streams )) return ERROR_SUCCESS;
r = MSI_DatabaseOpenViewW( package->db, query, &view );
if (r != ERROR_SUCCESS) return ERROR_SUCCESS;