mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 01:02:17 +00:00
msxml3: Handle SafeArrayAccessData() failure in load() (Coverity).
This commit is contained in:
parent
27b7ff73e4
commit
cfe52abcf4
|
@ -2140,7 +2140,13 @@ static HRESULT WINAPI domdoc_load(
|
||||||
case 1:
|
case 1:
|
||||||
/* Only takes UTF-8 strings.
|
/* Only takes UTF-8 strings.
|
||||||
* NOT NULL-terminated. */
|
* NOT NULL-terminated. */
|
||||||
SafeArrayAccessData(psa, (void**)&str);
|
hr = SafeArrayAccessData(psa, (void**)&str);
|
||||||
|
if (FAILED(hr))
|
||||||
|
{
|
||||||
|
This->error = hr;
|
||||||
|
WARN("failed to access array data, 0x%08x\n", hr);
|
||||||
|
break;
|
||||||
|
}
|
||||||
SafeArrayGetUBound(psa, 1, &len);
|
SafeArrayGetUBound(psa, 1, &len);
|
||||||
|
|
||||||
if ((xmldoc = doparse(This, str, ++len, XML_CHAR_ENCODING_UTF8)))
|
if ((xmldoc = doparse(This, str, ++len, XML_CHAR_ENCODING_UTF8)))
|
||||||
|
|
Loading…
Reference in a new issue