- Don't access next block if there is none in CabinetExtractFile.

svn path=/trunk/; revision=63859
This commit is contained in:
Thomas Faber 2014-08-10 21:51:29 +00:00
parent 0d0a2740eb
commit a4d36a3511

View 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");