credui: Sign-compare warnings fix.
This commit is contained in:
parent
8002b79087
commit
3a498da739
|
@ -441,7 +441,7 @@ static void CredDialogCommandOk(HWND hwndDlg, struct cred_dialog_params *params)
|
||||||
|
|
||||||
if (!strchrW(user, '\\') && !strchrW(user, '@'))
|
if (!strchrW(user, '\\') && !strchrW(user, '@'))
|
||||||
{
|
{
|
||||||
INT len_target = strlenW(params->pszTargetName);
|
ULONG len_target = strlenW(params->pszTargetName);
|
||||||
memcpy(params->pszUsername, params->pszTargetName,
|
memcpy(params->pszUsername, params->pszTargetName,
|
||||||
min(len_target, params->ulUsernameMaxChars) * sizeof(WCHAR));
|
min(len_target, params->ulUsernameMaxChars) * sizeof(WCHAR));
|
||||||
if (len_target + 1 < params->ulUsernameMaxChars)
|
if (len_target + 1 < params->ulUsernameMaxChars)
|
||||||
|
|
Loading…
Reference in New Issue