credui: The list should be the first parameter to the list_add_tail function.

This commit is contained in:
Rob Shearman 2008-01-23 16:33:08 +00:00 committed by Alexandre Julliard
parent 7277113af3
commit 9a032584f7
1 changed files with 1 additions and 2 deletions

View File

@ -631,11 +631,10 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
if (!found)
{
entry = HeapAlloc(GetProcessHeap(), 0, sizeof(*entry));
list_init(&entry->entry);
len = strlenW(pszTargetName);
entry->pszTargetName = HeapAlloc(GetProcessHeap(), 0, (len + 1)*sizeof(WCHAR));
memcpy(entry->pszTargetName, pszTargetName, (len + 1)*sizeof(WCHAR));
list_add_tail(&entry->entry, &pending_credentials_list);
list_add_tail(&pending_credentials_list, &entry->entry);
}
len = strlenW(params.pszUsername);