Commit d57c20ac authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

cabinet: Store the cab file handle before extracting files so we can

close the cab file even if no files are extracted.
parent 82dc96e5
......@@ -2370,6 +2370,7 @@ BOOL __cdecl FDICopy(
CAB(setID) = fdici.setID;
CAB(iCabinet) = fdici.iCabinet;
CAB(cabhf) = cabhf;
/* read folders */
for (i = 0; i < fdici.cFolders; i++) {
......@@ -2554,7 +2555,6 @@ BOOL __cdecl FDICopy(
/* set up decomp_state */
CAB(hfdi) = hfdi;
CAB(filehf) = filehf;
CAB(cabhf) = cabhf;
/* Was there a change of folder? Compression type? Did we somehow go backwards? */
if ((ct1 != ct2) || (CAB(current) != fol) || (file->offset < CAB(offset))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment