Commit 9a032584 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 7277113a
......@@ -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);
......
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