mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[USETUP]
- Don't access next block if there is none in CabinetExtractFile. svn path=/trunk/; revision=63859
This commit is contained in:
parent
0d0a2740eb
commit
a4d36a3511
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue