msxml: Don't use VariantClear on an uninitialized variant.
This commit is contained in:
parent
a781bbf096
commit
6d8c6c5a3a
|
@ -219,7 +219,7 @@ static HRESULT WINAPI xmlelem_getAttribute(IXMLElement *iface, BSTR strPropertyN
|
|||
if (!PropertyValue)
|
||||
return E_INVALIDARG;
|
||||
|
||||
VariantClear(PropertyValue);
|
||||
VariantInit(PropertyValue);
|
||||
V_BSTR(PropertyValue) = NULL;
|
||||
|
||||
if (!strPropertyName)
|
||||
|
|
Loading…
Reference in New Issue