Hans Leidekker : msi: Avoid loading cabinet streams more than once.

Alexandre Julliard julliard at winehq.org
Fri May 6 13:44:12 CDT 2011


Module: wine
Branch: master
Commit: 395479f0d194b7b7e1cf6b766825f492faafde5d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=395479f0d194b7b7e1cf6b766825f492faafde5d

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri May  6 14:39:42 2011 +0200

msi: Avoid loading cabinet streams more than once.

---

 dlls/msi/action.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index c4d7717..227e661 100644
--- a/dlls/msi/action.c
+++ b/dlls/msi/action.c
@@ -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;
 




More information about the wine-cvs mailing list