[NTOS:IO] Fix always-false condition in IoCheckEaBufferValidity.

Spotted by clang.
This commit is contained in:
Thomas Faber 2019-03-24 16:10:33 +01:00
parent faaf2dc0e6
commit 57225adaac
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -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;
}