mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-07 20:42:09 -05:00
dll: suppress compiler warning on x86 builds
This commit is contained in:
parent
0e2f46dc90
commit
913f7ac9cd
@ -161,7 +161,7 @@ static inline BOOLEAN FspNpParseUserName(PWSTR RemoteName,
|
|||||||
&ClassName, &ClassNameLen, &InstanceName, &InstanceNameLen))
|
&ClassName, &ClassNameLen, &InstanceName, &InstanceNameLen))
|
||||||
{
|
{
|
||||||
for (P = InstanceName; *P; P++)
|
for (P = InstanceName; *P; P++)
|
||||||
if ('@' == *P && P - InstanceName < UserNameSize)
|
if ('@' == *P && (ULONG)(P - InstanceName) < UserNameSize)
|
||||||
{
|
{
|
||||||
memcpy(UserName, InstanceName, (P - InstanceName) * sizeof(WCHAR));
|
memcpy(UserName, InstanceName, (P - InstanceName) * sizeof(WCHAR));
|
||||||
UserName[P - InstanceName] = L'\0';
|
UserName[P - InstanceName] = L'\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user