From 913f7ac9cd32004d5450ab41f738811f12cd459d Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 27 Jul 2016 16:25:41 -0700 Subject: [PATCH] dll: suppress compiler warning on x86 builds --- src/dll/np.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dll/np.c b/src/dll/np.c index 9b4d55c3..a410ba02 100644 --- a/src/dll/np.c +++ b/src/dll/np.c @@ -161,7 +161,7 @@ static inline BOOLEAN FspNpParseUserName(PWSTR RemoteName, &ClassName, &ClassNameLen, &InstanceName, &InstanceNameLen)) { for (P = InstanceName; *P; P++) - if ('@' == *P && P - InstanceName < UserNameSize) + if ('@' == *P && (ULONG)(P - InstanceName) < UserNameSize) { memcpy(UserName, InstanceName, (P - InstanceName) * sizeof(WCHAR)); UserName[P - InstanceName] = L'\0';