Commit 8f9c39d2 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 938dcab3
......@@ -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);
......
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