https://git.reactos.org/?p=reactos.git;a=commitdiff;h=57225adaac5d6dae53dd5…
commit 57225adaac5d6dae53dd5b9d2b832a0ace73187b
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Mar 24 16:10:33 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Mar 25 08:41:51 2019 +0100
[NTOS:IO] Fix always-false condition in IoCheckEaBufferValidity.
Spotted by clang.
---
ntoskrnl/io/iomgr/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/io/iomgr/util.c b/ntoskrnl/io/iomgr/util.c
index 5005e182089..bd7fdde85dc 100644
--- a/ntoskrnl/io/iomgr/util.c
+++ b/ntoskrnl/io/iomgr/util.c
@@ -251,7 +251,7 @@ IoCheckEaBufferValidity(IN PFILE_FULL_EA_INFORMATION EaBuffer,
/* Compute the remaining bits */
EaLength -= NextEntryOffset;
/* We must have bits left */
- if (EaLength < 0)
+ if ((LONG)EaLength < 0)
{
goto FailPath;
}