msi: Fix bug in handling of multivolume CAB files.

Ove Kaaven ovek at transgaming.com
Tue Mar 4 11:40:49 CST 2008


MSI has a flaw when installing from multiple .cab files. With a CAB set 
of something like:

multi1.cab
multi2.cab
  multivolume cab, contains small.txt and large.bin
single.cab
  singlevolume cab, contains data.txt

Extracting the small.txt from multi*.cab results in cabinet 
notifications of:

fdintCABINET_INFO etc
fdintCOPY_FILE
fdintNEXT_CABINET
  (here, cabinet_notify sets is_continuous = TRUE)
fdintCLOSE_FILE_INFO

Next, attempting to extract data.txt from single.cab hits the "if 
(is_continuous) return" condition in ready_media. As a result, 
information about single.cab is not loaded, and MSI tries to extract 
data.txt from multi2.cab, which fails.

This patch ought to fix this, by clearing is_continuous in the 
CLOSE_FILE_INFO handler.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Fix-bug-in-handling-of-multivolume-CAB-files.patch
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080304/9d50ae57/attachment.txt 


More information about the wine-patches mailing list