msxml3: Added ISAXLocator_getSystemId.
This commit is contained in:
parent
60ca0a7b53
commit
3196f7801c
|
@ -63,6 +63,7 @@ typedef struct _saxlocator
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
xmlParserCtxtPtr pParserCtxt;
|
xmlParserCtxtPtr pParserCtxt;
|
||||||
WCHAR *publicId;
|
WCHAR *publicId;
|
||||||
|
WCHAR *systemId;
|
||||||
int lastLine;
|
int lastLine;
|
||||||
int lastColumn;
|
int lastColumn;
|
||||||
} saxlocator;
|
} saxlocator;
|
||||||
|
@ -310,6 +311,8 @@ static ULONG WINAPI isaxlocator_Release(
|
||||||
{
|
{
|
||||||
if(This->publicId)
|
if(This->publicId)
|
||||||
SysFreeString(This->publicId);
|
SysFreeString(This->publicId);
|
||||||
|
if(This->systemId)
|
||||||
|
SysFreeString(This->systemId);
|
||||||
|
|
||||||
ISAXXMLReader_Release((ISAXXMLReader*)&This->saxreader->lpSAXXMLReaderVtbl);
|
ISAXXMLReader_Release((ISAXXMLReader*)&This->saxreader->lpSAXXMLReaderVtbl);
|
||||||
HeapFree( GetProcessHeap(), 0, This );
|
HeapFree( GetProcessHeap(), 0, This );
|
||||||
|
@ -365,10 +368,22 @@ static HRESULT WINAPI isaxlocator_getSystemId(
|
||||||
ISAXLocator* iface,
|
ISAXLocator* iface,
|
||||||
const WCHAR ** ppwchSystemId)
|
const WCHAR ** ppwchSystemId)
|
||||||
{
|
{
|
||||||
|
BSTR systemId;
|
||||||
saxlocator *This = impl_from_ISAXLocator( iface );
|
saxlocator *This = impl_from_ISAXLocator( iface );
|
||||||
|
|
||||||
FIXME("(%p)->(%p) stub\n", This, ppwchSystemId);
|
if(This->systemId) SysFreeString(This->systemId);
|
||||||
return E_NOTIMPL;
|
|
||||||
|
systemId = bstr_from_xmlChar(xmlSAX2GetSystemId(This->pParserCtxt));
|
||||||
|
if(SysStringLen(systemId))
|
||||||
|
This->systemId = (WCHAR*)&systemId;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SysFreeString(systemId);
|
||||||
|
This->systemId = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
*ppwchSystemId = This->systemId;
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct ISAXLocatorVtbl isaxlocator_vtbl =
|
static const struct ISAXLocatorVtbl isaxlocator_vtbl =
|
||||||
|
@ -398,6 +413,7 @@ static HRESULT SAXLocator_create(saxreader *reader, saxlocator **ppsaxlocator)
|
||||||
|
|
||||||
locator->pParserCtxt = NULL;
|
locator->pParserCtxt = NULL;
|
||||||
locator->publicId = NULL;
|
locator->publicId = NULL;
|
||||||
|
locator->systemId = NULL;
|
||||||
locator->lastLine = 0;
|
locator->lastLine = 0;
|
||||||
locator->lastColumn = 0;
|
locator->lastColumn = 0;
|
||||||
locator->ret = S_OK;
|
locator->ret = S_OK;
|
||||||
|
|
Loading…
Reference in New Issue