[USETUP]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 10 Aug 2014 21:51:29 +0000 (21:51 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 10 Aug 2014 21:51:29 +0000 (21:51 +0000)
- Don't access next block if there is none in CabinetExtractFile.

svn path=/trunk/; revision=63859

reactos/base/setup/usetup/cabinet.c

index 9f02425..1d16ac0 100644 (file)
@@ -1098,7 +1098,7 @@ CabinetExtractFile(PCAB_SEARCH Search)
         Size -= OutputLength;
         /* reduce remaining block size by bytes consumed */
         RemainingBlock -= InputLength;
-        if (RemainingBlock == 0)
+        if (Size > 0 && RemainingBlock == 0)
         {
             /* used up this block, move on to the next */
             DPRINT("Out of block data\n");