wininet: Fixed realm allocation in cache_basic_authorization.

This commit is contained in:
Jacek Caban 2011-07-28 16:53:57 +02:00 committed by Alexandre Julliard
parent 256bd4532c
commit 0281b7d30b

View File

@ -873,7 +873,7 @@ static void cache_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR auth_data
{
ad = heap_alloc(sizeof(basicAuthorizationData));
ad->host = heap_strdupW(host);
ad->host = heap_strdupW(realm);
ad->realm = heap_strdupW(realm);
ad->authorization = heap_alloc(auth_data_len);
memcpy(ad->authorization, auth_data, auth_data_len);
ad->authorizationLen = auth_data_len;