credui: Sign-compare warnings fix.

This commit is contained in:
Andrew Talbot 2008-09-22 19:38:42 +01:00 committed by Alexandre Julliard
parent 8002b79087
commit 3a498da739

View file

@ -441,7 +441,7 @@ static void CredDialogCommandOk(HWND hwndDlg, struct cred_dialog_params *params)
if (!strchrW(user, '\\') && !strchrW(user, '@'))
{
INT len_target = strlenW(params->pszTargetName);
ULONG len_target = strlenW(params->pszTargetName);
memcpy(params->pszUsername, params->pszTargetName,
min(len_target, params->ulUsernameMaxChars) * sizeof(WCHAR));
if (len_target + 1 < params->ulUsernameMaxChars)