Commit 3a498da7 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

credui: Sign-compare warnings fix.

parent 8002b790
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment