#else\r
size_t buflen;\r
mbstowcs_s(&buflen, NULL, 0, username, _TRUNCATE);\r
- lsa_username.MaximumLength = buflen * sizeof(wchar_t);\r
+ lsa_username.MaximumLength = (unsigned short) buflen * sizeof(wchar_t);\r
lsa_username.Length = lsa_username.MaximumLength - sizeof(wchar_t);\r
lsa_username.Buffer = (wchar_t *) HeapAlloc(GetProcessHeap(), 0, lsa_username.MaximumLength);\r
if (lsa_username.Buffer) mbstowcs_s(&buflen, lsa_username.Buffer, lsa_username.MaximumLength, username, _TRUNCATE);\r