Author: tfaber
Date: Sun Aug 10 21:51:29 2014
New Revision: 63859
URL:
http://svn.reactos.org/svn/reactos?rev=63859&view=rev
Log:
[USETUP]
- Don't access next block if there is none in CabinetExtractFile.
Modified:
trunk/reactos/base/setup/usetup/cabinet.c
Modified: trunk/reactos/base/setup/usetup/cabinet.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/cabinet.…
==============================================================================
--- trunk/reactos/base/setup/usetup/cabinet.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/cabinet.c [iso-8859-1] Sun Aug 10 21:51:29 2014
@@ -1098,7 +1098,7 @@
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");