mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
credui: Sign-compare warnings fix.
This commit is contained in:
parent
8002b79087
commit
3a498da739
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue