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

This commit is contained in:
James Hawkins 2007-05-29 10:43:50 -07:00 committed by Alexandre Julliard
parent 1aa0082558
commit 44649d2ff8
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}