mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
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, '@'))
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user