msxml3: Re-initialise the variant so that VariantChangeType doesn't free the user string.

oldstable
Huw Davies 2011-11-16 13:18:49 +00:00 committed by Alexandre Julliard
parent 938dcab3f4
commit 8f9c39d2a8
1 changed files with 1 additions and 0 deletions

View File

@ -706,6 +706,7 @@ static HRESULT WINAPI httprequest_open(IXMLHTTPRequest *iface, BSTR method, BSTR
if (hr == S_OK)
This->user = V_BSTR(&str);
VariantInit(&str);
hr = VariantChangeType(&str, &password, 0, VT_BSTR);
if (hr == S_OK)
This->password = V_BSTR(&str);