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)
|
if (!PropertyValue)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
VariantClear(PropertyValue);
|
VariantInit(PropertyValue);
|
||||||
V_BSTR(PropertyValue) = NULL;
|
V_BSTR(PropertyValue) = NULL;
|
||||||
|
|
||||||
if (!strPropertyName)
|
if (!strPropertyName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user