mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- Fix an always true comparison in IoCheckEaBufferValidity.
svn path=/trunk/; revision=38499
This commit is contained in:
parent
b0d177b83c
commit
56d6ef019e
1 changed files with 3 additions and 1 deletions
|
@ -169,6 +169,8 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
|
||||||
ULONG NextEaBufferOffset;
|
ULONG NextEaBufferOffset;
|
||||||
LONG IntEaLength;
|
LONG IntEaLength;
|
||||||
|
|
||||||
|
PAGED_CODE();
|
||||||
|
|
||||||
/* Lenght of the rest. Inital equal to EaLength */
|
/* Lenght of the rest. Inital equal to EaLength */
|
||||||
IntEaLength = EaLength;
|
IntEaLength = EaLength;
|
||||||
|
|
||||||
|
@ -209,7 +211,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
|
||||||
*/
|
*/
|
||||||
NextEaBufferOffset = ((NextEaBufferOffset + 3) & ~3);
|
NextEaBufferOffset = ((NextEaBufferOffset + 3) & ~3);
|
||||||
if ((EaBufferEnd->NextEntryOffset == NextEaBufferOffset) &&
|
if ((EaBufferEnd->NextEntryOffset == NextEaBufferOffset) &&
|
||||||
(EaBufferEnd->NextEntryOffset>0))
|
((LONG)EaBufferEnd->NextEntryOffset > 0))
|
||||||
{
|
{
|
||||||
/* Rest of buffer must be greater then the
|
/* Rest of buffer must be greater then the
|
||||||
next offset */
|
next offset */
|
||||||
|
|
Loading…
Reference in a new issue