James Hawkins : msi: Fall back to checking if the cab exists if the volume name doesn't match.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 30 08:56:51 CDT 2007


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

Author: James Hawkins <truiken at gmail.com>
Date:   Tue May 29 10:43:50 2007 -0700

msi: Fall back to checking if the cab exists if the volume name doesn't match.

---

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

diff --git a/dlls/msi/files.c b/dlls/msi/files.c
index f807069..42f954c 100644
--- a/dlls/msi/files.c
+++ b/dlls/msi/files.c
@@ -615,6 +615,9 @@ static UINT ready_media(MSIPACKAGE *package, MSIFILE *file, struct media_info *m
         if (type == DRIVE_CDROM || type == DRIVE_REMOVABLE)
             found = source_matches_volume(mi, source_dir);
 
+        if (!found)
+            found = GetFileAttributesW(mi->cabinet) != INVALID_FILE_ATTRIBUTES;
+
         msi_free(source_dir);
     }
 




More information about the wine-cvs mailing list