- Fix an always true comparison in IoCheckEaBufferValidity.

svn path=/trunk/; revision=38499
This commit is contained in:
Aleksey Bragin 2009-01-01 15:19:15 +00:00
parent b0d177b83c
commit 56d6ef019e

View file

@ -169,6 +169,8 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
ULONG NextEaBufferOffset;
LONG IntEaLength;
PAGED_CODE();
/* Lenght of the rest. Inital equal to EaLength */
IntEaLength = EaLength;
@ -209,7 +211,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
*/
NextEaBufferOffset = ((NextEaBufferOffset + 3) & ~3);
if ((EaBufferEnd->NextEntryOffset == NextEaBufferOffset) &&
(EaBufferEnd->NextEntryOffset>0))
((LONG)EaBufferEnd->NextEntryOffset > 0))
{
/* Rest of buffer must be greater then the
next offset */