mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
sys: name: fix warning on x86 builds
This commit is contained in:
parent
3008575bdf
commit
245bba0a17
@ -67,7 +67,7 @@ BOOLEAN FspFileNameIsValid(PUNICODE_STRING Path, ULONG MaxComponentLength,
|
||||
return FALSE;
|
||||
|
||||
/* path component cannot be longer than MaxComponentLength */
|
||||
if (PathPtr - ComponentPtr > MaxComponentLength)
|
||||
if ((ULONG)(PathPtr - ComponentPtr) > MaxComponentLength)
|
||||
return FALSE;
|
||||
|
||||
PathPtr++;
|
||||
@ -115,7 +115,7 @@ BOOLEAN FspFileNameIsValid(PUNICODE_STRING Path, ULONG MaxComponentLength,
|
||||
}
|
||||
|
||||
/* path component cannot be longer than MaxComponentLength */
|
||||
if (PathPtr - ComponentPtr > MaxComponentLength)
|
||||
if ((ULONG)(PathPtr - ComponentPtr) > MaxComponentLength)
|
||||
return FALSE;
|
||||
|
||||
/* 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 */
|
||||
if (PathPtr - ComponentPtr > MaxComponentLength)
|
||||
if ((ULONG)(PathPtr - ComponentPtr) > MaxComponentLength)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user