From: Thomas Faber Date: Sun, 24 Mar 2019 15:10:33 +0000 (+0100) Subject: [NTOS:IO] Fix always-false condition in IoCheckEaBufferValidity. X-Git-Tag: 0.4.13-dev~136 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=57225adaac5d6dae53dd5b9d2b832a0ace73187b [NTOS:IO] Fix always-false condition in IoCheckEaBufferValidity. Spotted by clang. --- 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; }