diff --git a/reactos/ntoskrnl/io/iomgr/util.c b/reactos/ntoskrnl/io/iomgr/util.c index 871b3b9f23f..e2c0bcee0c1 100644 --- a/reactos/ntoskrnl/io/iomgr/util.c +++ b/reactos/ntoskrnl/io/iomgr/util.c @@ -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 */