sys: name: fix warning on x86 builds

This commit is contained in:
Bill Zissimopoulos 2016-12-18 13:35:25 -08:00
parent 3008575bdf
commit 245bba0a17

View File

@ -67,7 +67,7 @@ BOOLEAN FspFileNameIsValid(PUNICODE_STRING Path, ULONG MaxComponentLength,
return FALSE; return FALSE;
/* path component cannot be longer than MaxComponentLength */ /* path component cannot be longer than MaxComponentLength */
if (PathPtr - ComponentPtr > MaxComponentLength) if ((ULONG)(PathPtr - ComponentPtr) > MaxComponentLength)
return FALSE; return FALSE;
PathPtr++; PathPtr++;
@ -115,7 +115,7 @@ BOOLEAN FspFileNameIsValid(PUNICODE_STRING Path, ULONG MaxComponentLength,
} }
/* path component cannot be longer than MaxComponentLength */ /* path component cannot be longer than MaxComponentLength */
if (PathPtr - ComponentPtr > MaxComponentLength) if ((ULONG)(PathPtr - ComponentPtr) > MaxComponentLength)
return FALSE; return FALSE;
/* if we had no colons the path is valid */ /* if we had no colons the path is valid */
@ -181,7 +181,7 @@ BOOLEAN FspFileNameIsValidPattern(PUNICODE_STRING Path, ULONG MaxComponentLength
} }
/* path component cannot be longer than MaxComponentLength */ /* path component cannot be longer than MaxComponentLength */
if (PathPtr - ComponentPtr > MaxComponentLength) if ((ULONG)(PathPtr - ComponentPtr) > MaxComponentLength)
return FALSE; return FALSE;
return TRUE; return TRUE;