mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 17:03:12 -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;
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user