Author: fireball
Date: Thu Jan 1 09:19:15 2009
New Revision: 38499
URL:
http://svn.reactos.org/svn/reactos?rev=38499&view=rev
Log:
- Fix an always true comparison in IoCheckEaBufferValidity.
Modified:
trunk/reactos/ntoskrnl/io/iomgr/util.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/util.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/util.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/util.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/util.c [iso-8859-1] Thu Jan 1 09:19:15 2009
@@ -168,6 +168,8 @@
PFILE_FULL_EA_INFORMATION EaBufferEnd;
ULONG NextEaBufferOffset;
LONG IntEaLength;
+
+ PAGED_CODE();
/* Lenght of the rest. Inital equal to EaLength */
IntEaLength = EaLength;
@@ -209,7 +211,7 @@
*/
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 */