Commit 818917a0 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Properly store SystemID and PublicID (Coverity).

parent c23ce597
...@@ -294,8 +294,8 @@ typedef struct ...@@ -294,8 +294,8 @@ typedef struct
saxreader *saxreader; saxreader *saxreader;
HRESULT ret; HRESULT ret;
xmlParserCtxtPtr pParserCtxt; xmlParserCtxtPtr pParserCtxt;
WCHAR *publicId; BSTR publicId;
WCHAR *systemId; BSTR systemId;
int line; int line;
int column; int column;
BOOL vbInterface; BOOL vbInterface;
...@@ -2132,7 +2132,7 @@ static HRESULT WINAPI isaxlocator_getPublicId( ...@@ -2132,7 +2132,7 @@ static HRESULT WINAPI isaxlocator_getPublicId(
publicId = bstr_from_xmlChar(xmlSAX2GetPublicId(This->pParserCtxt)); publicId = bstr_from_xmlChar(xmlSAX2GetPublicId(This->pParserCtxt));
if(SysStringLen(publicId)) if(SysStringLen(publicId))
This->publicId = (WCHAR*)&publicId; This->publicId = publicId;
else else
{ {
SysFreeString(publicId); SysFreeString(publicId);
...@@ -2154,7 +2154,7 @@ static HRESULT WINAPI isaxlocator_getSystemId( ...@@ -2154,7 +2154,7 @@ static HRESULT WINAPI isaxlocator_getSystemId(
systemId = bstr_from_xmlChar(xmlSAX2GetSystemId(This->pParserCtxt)); systemId = bstr_from_xmlChar(xmlSAX2GetSystemId(This->pParserCtxt));
if(SysStringLen(systemId)) if(SysStringLen(systemId))
This->systemId = (WCHAR*)&systemId; This->systemId = systemId;
else else
{ {
SysFreeString(systemId); SysFreeString(systemId);
......
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