mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Windows: afslogon cast away warnings
cast away size_t to int warnings in 64-bit builds. Change-Id: I1200fe6235d75f87c5d8e78496baae29b3c5242c Reviewed-on: http://gerrit.openafs.org/7634 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
79f68de80e
commit
76ae0f01b3
@ -1329,11 +1329,11 @@ VOID AFS_Logoff_Event( PWLX_NOTIFICATION_INFO pInfo )
|
||||
size_t szlen = 0;
|
||||
|
||||
StringCchLengthW(pInfo->UserName, MAX_USERNAME_LENGTH, &szlen);
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->UserName, szlen,
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->UserName, (int)szlen,
|
||||
username, sizeof(username), NULL, NULL);
|
||||
|
||||
StringCchLengthW(pInfo->Domain, MAX_DOMAIN_LENGTH, &szlen);
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->Domain, szlen,
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->Domain, (int)szlen,
|
||||
domain, sizeof(domain), NULL, NULL);
|
||||
|
||||
GetDomainLogonOptions(NULL, username, domain, &opt);
|
||||
@ -1426,11 +1426,11 @@ VOID AFS_Logon_Event( PWLX_NOTIFICATION_INFO pInfo )
|
||||
DebugEvent0("AFS_Logon_Event - pInfo UserName and Domain");
|
||||
|
||||
StringCchLengthW(pInfo->UserName, MAX_USERNAME_LENGTH, &szlen);
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->UserName, szlen,
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->UserName, (int)szlen,
|
||||
username, sizeof(username), NULL, NULL);
|
||||
|
||||
StringCchLengthW(pInfo->Domain, MAX_DOMAIN_LENGTH, &szlen);
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->Domain, szlen,
|
||||
WideCharToMultiByte(CP_UTF8, 0, pInfo->Domain, (int)szlen,
|
||||
domain, sizeof(domain), NULL, NULL);
|
||||
|
||||
DebugEvent0("AFS_Logon_Event - Calling GetDomainLogonOptions");
|
||||
|
Loading…
Reference in New Issue
Block a user