mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 18:16:29 +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;
|
Size -= OutputLength;
|
||||||
/* reduce remaining block size by bytes consumed */
|
/* reduce remaining block size by bytes consumed */
|
||||||
RemainingBlock -= InputLength;
|
RemainingBlock -= InputLength;
|
||||||
if (RemainingBlock == 0)
|
if (Size > 0 && RemainingBlock == 0)
|
||||||
{
|
{
|
||||||
/* used up this block, move on to the next */
|
/* used up this block, move on to the next */
|
||||||
DPRINT("Out of block data\n");
|
DPRINT("Out of block data\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue