msxml3: Remove superfluous pointer casts.
This commit is contained in:
parent
bd9c265cc2
commit
6a5dda7143
@ -520,7 +520,7 @@ static HRESULT WINAPI domcdata_get_length(
|
|||||||
long *len)
|
long *len)
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
xmlnode *pDOMNode = impl_from_IXMLDOMNode( (IXMLDOMNode*)This->node );
|
xmlnode *pDOMNode = impl_from_IXMLDOMNode( This->node );
|
||||||
xmlChar *pContent;
|
xmlChar *pContent;
|
||||||
long nLength = 0;
|
long nLength = 0;
|
||||||
|
|
||||||
@ -546,7 +546,7 @@ static HRESULT WINAPI domcdata_substringData(
|
|||||||
long offset, long count, BSTR *p)
|
long offset, long count, BSTR *p)
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
xmlnode *pDOMNode = impl_from_IXMLDOMNode( (IXMLDOMNode*)This->node );
|
xmlnode *pDOMNode = impl_from_IXMLDOMNode( This->node );
|
||||||
xmlChar *pContent;
|
xmlChar *pContent;
|
||||||
long nLength = 0;
|
long nLength = 0;
|
||||||
HRESULT hr = S_FALSE;
|
HRESULT hr = S_FALSE;
|
||||||
@ -591,7 +591,7 @@ static HRESULT WINAPI domcdata_appendData(
|
|||||||
BSTR p)
|
BSTR p)
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
xmlnode *pDOMNode = impl_from_IXMLDOMNode( (IXMLDOMNode*)This->node );
|
xmlnode *pDOMNode = impl_from_IXMLDOMNode( This->node );
|
||||||
xmlChar *pContent;
|
xmlChar *pContent;
|
||||||
HRESULT hr = S_FALSE;
|
HRESULT hr = S_FALSE;
|
||||||
|
|
||||||
@ -601,7 +601,7 @@ static HRESULT WINAPI domcdata_appendData(
|
|||||||
if(p == NULL || SysStringLen(p) == 0)
|
if(p == NULL || SysStringLen(p) == 0)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
pContent = xmlChar_from_wchar( (WCHAR*)p );
|
pContent = xmlChar_from_wchar( p );
|
||||||
if(pContent)
|
if(pContent)
|
||||||
{
|
{
|
||||||
if(xmlTextConcat(pDOMNode->node, pContent, SysStringLen(p) ) == 0)
|
if(xmlTextConcat(pDOMNode->node, pContent, SysStringLen(p) ) == 0)
|
||||||
@ -621,7 +621,7 @@ static HRESULT WINAPI domcdata_insertData(
|
|||||||
long offset, BSTR p)
|
long offset, BSTR p)
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
xmlnode *pDOMNode = impl_from_IXMLDOMNode( (IXMLDOMNode*)This->node );
|
xmlnode *pDOMNode = impl_from_IXMLDOMNode( This->node );
|
||||||
xmlChar *pXmlContent;
|
xmlChar *pXmlContent;
|
||||||
BSTR sNewString;
|
BSTR sNewString;
|
||||||
HRESULT hr = S_FALSE;
|
HRESULT hr = S_FALSE;
|
||||||
@ -667,7 +667,7 @@ static HRESULT WINAPI domcdata_insertData(
|
|||||||
|
|
||||||
sNewString[nLengthP + nLength] = 0;
|
sNewString[nLengthP + nLength] = 0;
|
||||||
|
|
||||||
str = xmlChar_from_wchar((WCHAR*)sNewString);
|
str = xmlChar_from_wchar(sNewString);
|
||||||
if(str)
|
if(str)
|
||||||
{
|
{
|
||||||
xmlNodeSetContent(pDOMNode->node, str);
|
xmlNodeSetContent(pDOMNode->node, str);
|
||||||
|
@ -595,7 +595,7 @@ static HRESULT WINAPI domcomment_appendData(
|
|||||||
if(p == NULL || SysStringLen(p) == 0)
|
if(p == NULL || SysStringLen(p) == 0)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
pContent = xmlChar_from_wchar( (WCHAR*)p );
|
pContent = xmlChar_from_wchar( p );
|
||||||
if(pContent)
|
if(pContent)
|
||||||
{
|
{
|
||||||
/* Older versions of libxml < 2.6.27 didn't correctly support
|
/* Older versions of libxml < 2.6.27 didn't correctly support
|
||||||
@ -675,7 +675,7 @@ static HRESULT WINAPI domcomment_insertData(
|
|||||||
|
|
||||||
sNewString[nLengthP + nLength] = 0;
|
sNewString[nLengthP + nLength] = 0;
|
||||||
|
|
||||||
str = xmlChar_from_wchar((WCHAR*)sNewString);
|
str = xmlChar_from_wchar(sNewString);
|
||||||
if(str)
|
if(str)
|
||||||
{
|
{
|
||||||
xmlNodeSetContent(pDOMNode->node, str);
|
xmlNodeSetContent(pDOMNode->node, str);
|
||||||
|
@ -459,11 +459,11 @@ static HRESULT WINAPI domdoc_QueryInterface( IXMLDOMDocument2 *iface, REFIID rii
|
|||||||
}
|
}
|
||||||
else if (IsEqualGUID(&IID_IPersistStream, riid))
|
else if (IsEqualGUID(&IID_IPersistStream, riid))
|
||||||
{
|
{
|
||||||
*ppvObject = (IPersistStream*)&(This->lpvtblIPersistStream);
|
*ppvObject = &(This->lpvtblIPersistStream);
|
||||||
}
|
}
|
||||||
else if (IsEqualGUID(&IID_IObjectWithSite, riid))
|
else if (IsEqualGUID(&IID_IObjectWithSite, riid))
|
||||||
{
|
{
|
||||||
*ppvObject = (IObjectWithSite*)&(This->lpvtblIObjectWithSite);
|
*ppvObject = &(This->lpvtblIObjectWithSite);
|
||||||
}
|
}
|
||||||
else if( IsEqualGUID( riid, &IID_ISupportErrorInfo ))
|
else if( IsEqualGUID( riid, &IID_ISupportErrorInfo ))
|
||||||
{
|
{
|
||||||
@ -1041,7 +1041,7 @@ static HRESULT WINAPI domdoc_createElement(
|
|||||||
|
|
||||||
TRACE("%p->(%s,%p)\n", iface, debugstr_w(tagname), element);
|
TRACE("%p->(%s,%p)\n", iface, debugstr_w(tagname), element);
|
||||||
|
|
||||||
xml_name = xmlChar_from_wchar((WCHAR*)tagname);
|
xml_name = xmlChar_from_wchar(tagname);
|
||||||
xmlnode = xmlNewDocNode(get_doc(This), NULL, xml_name, NULL);
|
xmlnode = xmlNewDocNode(get_doc(This), NULL, xml_name, NULL);
|
||||||
xmldoc_add_orphan(xmlnode->doc, xmlnode);
|
xmldoc_add_orphan(xmlnode->doc, xmlnode);
|
||||||
|
|
||||||
@ -1098,7 +1098,7 @@ static HRESULT WINAPI domdoc_createTextNode(
|
|||||||
|
|
||||||
*text = NULL;
|
*text = NULL;
|
||||||
|
|
||||||
xml_content = xmlChar_from_wchar((WCHAR*)data);
|
xml_content = xmlChar_from_wchar(data);
|
||||||
xmlnode = xmlNewText(xml_content);
|
xmlnode = xmlNewText(xml_content);
|
||||||
HeapFree(GetProcessHeap(), 0, xml_content);
|
HeapFree(GetProcessHeap(), 0, xml_content);
|
||||||
|
|
||||||
@ -1130,7 +1130,7 @@ static HRESULT WINAPI domdoc_createComment(
|
|||||||
|
|
||||||
*comment = NULL;
|
*comment = NULL;
|
||||||
|
|
||||||
xml_content = xmlChar_from_wchar((WCHAR*)data);
|
xml_content = xmlChar_from_wchar(data);
|
||||||
xmlnode = xmlNewComment(xml_content);
|
xmlnode = xmlNewComment(xml_content);
|
||||||
HeapFree(GetProcessHeap(), 0, xml_content);
|
HeapFree(GetProcessHeap(), 0, xml_content);
|
||||||
|
|
||||||
@ -1162,7 +1162,7 @@ static HRESULT WINAPI domdoc_createCDATASection(
|
|||||||
|
|
||||||
*cdata = NULL;
|
*cdata = NULL;
|
||||||
|
|
||||||
xml_content = xmlChar_from_wchar((WCHAR*)data);
|
xml_content = xmlChar_from_wchar(data);
|
||||||
xmlnode = xmlNewCDataBlock(get_doc( This ), xml_content, strlen( (char*)xml_content) );
|
xmlnode = xmlNewCDataBlock(get_doc( This ), xml_content, strlen( (char*)xml_content) );
|
||||||
HeapFree(GetProcessHeap(), 0, xml_content);
|
HeapFree(GetProcessHeap(), 0, xml_content);
|
||||||
|
|
||||||
@ -1197,8 +1197,8 @@ static HRESULT WINAPI domdoc_createProcessingInstruction(
|
|||||||
if(!target || lstrlenW(target) == 0)
|
if(!target || lstrlenW(target) == 0)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
xml_target = xmlChar_from_wchar((WCHAR*)target);
|
xml_target = xmlChar_from_wchar(target);
|
||||||
xml_content = xmlChar_from_wchar((WCHAR*)data);
|
xml_content = xmlChar_from_wchar(data);
|
||||||
|
|
||||||
xmlnode = xmlNewDocPI(get_doc(This), xml_target, xml_content);
|
xmlnode = xmlNewDocPI(get_doc(This), xml_target, xml_content);
|
||||||
xmldoc_add_orphan(xmlnode->doc, xmlnode);
|
xmldoc_add_orphan(xmlnode->doc, xmlnode);
|
||||||
@ -1232,7 +1232,7 @@ static HRESULT WINAPI domdoc_createAttribute(
|
|||||||
|
|
||||||
*attribute = NULL;
|
*attribute = NULL;
|
||||||
|
|
||||||
xml_name = xmlChar_from_wchar((WCHAR*)name);
|
xml_name = xmlChar_from_wchar(name);
|
||||||
xmlnode = (xmlNode *)xmlNewProp(NULL, xml_name, NULL);
|
xmlnode = (xmlNode *)xmlNewProp(NULL, xml_name, NULL);
|
||||||
HeapFree(GetProcessHeap(), 0, xml_name);
|
HeapFree(GetProcessHeap(), 0, xml_name);
|
||||||
|
|
||||||
@ -1264,7 +1264,7 @@ static HRESULT WINAPI domdoc_createEntityReference(
|
|||||||
|
|
||||||
*entityRef = NULL;
|
*entityRef = NULL;
|
||||||
|
|
||||||
xml_name = xmlChar_from_wchar((WCHAR*)name);
|
xml_name = xmlChar_from_wchar(name);
|
||||||
xmlnode = xmlNewReference(get_doc( This ), xml_name );
|
xmlnode = xmlNewReference(get_doc( This ), xml_name );
|
||||||
HeapFree(GetProcessHeap(), 0, xml_name);
|
HeapFree(GetProcessHeap(), 0, xml_name);
|
||||||
|
|
||||||
@ -1339,7 +1339,7 @@ static HRESULT WINAPI domdoc_createNode(
|
|||||||
|
|
||||||
TRACE("node_type %d\n", node_type);
|
TRACE("node_type %d\n", node_type);
|
||||||
|
|
||||||
xml_name = xmlChar_from_wchar((WCHAR*)name);
|
xml_name = xmlChar_from_wchar(name);
|
||||||
|
|
||||||
switch(node_type)
|
switch(node_type)
|
||||||
{
|
{
|
||||||
@ -2279,7 +2279,7 @@ IUnknown* create_domdoc( xmlNodePtr document )
|
|||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return (IUnknown*)pObj;
|
return pObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -345,7 +345,7 @@ static HRESULT WINAPI xmlnode_put_nodeValue(
|
|||||||
case XML_PI_NODE:
|
case XML_PI_NODE:
|
||||||
case XML_TEXT_NODE:
|
case XML_TEXT_NODE:
|
||||||
{
|
{
|
||||||
str = xmlChar_from_wchar((WCHAR*)V_BSTR(&string_value));
|
str = xmlChar_from_wchar(V_BSTR(&string_value));
|
||||||
xmlNodeSetContent(This->node, str);
|
xmlNodeSetContent(This->node, str);
|
||||||
HeapFree(GetProcessHeap(),0,str);
|
HeapFree(GetProcessHeap(),0,str);
|
||||||
hr = S_OK;
|
hr = S_OK;
|
||||||
@ -904,7 +904,7 @@ static HRESULT WINAPI xmlnode_put_text(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
str = xmlChar_from_wchar((WCHAR*)text);
|
str = xmlChar_from_wchar(text);
|
||||||
|
|
||||||
/* Escape the string. */
|
/* Escape the string. */
|
||||||
str2 = xmlEncodeEntitiesReentrant(This->node->doc, str);
|
str2 = xmlEncodeEntitiesReentrant(This->node->doc, str);
|
||||||
@ -1060,7 +1060,7 @@ static HRESULT WINAPI xmlnode_put_dataType(
|
|||||||
{
|
{
|
||||||
xmlNsPtr pNS = NULL;
|
xmlNsPtr pNS = NULL;
|
||||||
xmlAttrPtr pAttr = NULL;
|
xmlAttrPtr pAttr = NULL;
|
||||||
xmlChar* str = xmlChar_from_wchar((WCHAR*)dataTypeName);
|
xmlChar* str = xmlChar_from_wchar(dataTypeName);
|
||||||
|
|
||||||
pAttr = xmlHasNsProp(This->node, (xmlChar*)"dt",
|
pAttr = xmlHasNsProp(This->node, (xmlChar*)"dt",
|
||||||
(xmlChar*)"urn:schemas-microsoft-com:datatypes");
|
(xmlChar*)"urn:schemas-microsoft-com:datatypes");
|
||||||
|
@ -457,9 +457,8 @@ static HRESULT WINAPI ivbsaxattributes_getIndexFromName(
|
|||||||
{
|
{
|
||||||
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
||||||
return ISAXAttributes_getIndexFromName(
|
return ISAXAttributes_getIndexFromName(
|
||||||
(ISAXAttributes*)&This->lpSAXAttributesVtbl,
|
(ISAXAttributes*)&This->lpSAXAttributesVtbl, uri, SysStringLen(uri),
|
||||||
(const WCHAR*)uri, SysStringLen(uri),
|
localName, SysStringLen(localName), index);
|
||||||
(const WCHAR*)localName, SysStringLen(localName), index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ivbsaxattributes_getIndexFromQName(
|
static HRESULT WINAPI ivbsaxattributes_getIndexFromQName(
|
||||||
@ -469,8 +468,8 @@ static HRESULT WINAPI ivbsaxattributes_getIndexFromQName(
|
|||||||
{
|
{
|
||||||
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
||||||
return ISAXAttributes_getIndexFromQName(
|
return ISAXAttributes_getIndexFromQName(
|
||||||
(ISAXAttributes*)&This->lpSAXAttributesVtbl,
|
(ISAXAttributes*)&This->lpSAXAttributesVtbl, QName,
|
||||||
(const WCHAR*)QName, SysStringLen(QName), index);
|
SysStringLen(QName), index);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ivbsaxattributes_getType(
|
static HRESULT WINAPI ivbsaxattributes_getType(
|
||||||
@ -494,10 +493,8 @@ static HRESULT WINAPI ivbsaxattributes_getTypeFromName(
|
|||||||
int len;
|
int len;
|
||||||
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
||||||
return ISAXAttributes_getTypeFromName(
|
return ISAXAttributes_getTypeFromName(
|
||||||
(ISAXAttributes*)&This->lpSAXAttributesVtbl,
|
(ISAXAttributes*)&This->lpSAXAttributesVtbl, uri, SysStringLen(uri),
|
||||||
(const WCHAR*)uri, SysStringLen(uri),
|
localName, SysStringLen(localName), (const WCHAR**)type, &len);
|
||||||
(const WCHAR*)localName, SysStringLen(localName),
|
|
||||||
(const WCHAR**)type, &len);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ivbsaxattributes_getTypeFromQName(
|
static HRESULT WINAPI ivbsaxattributes_getTypeFromQName(
|
||||||
@ -508,9 +505,8 @@ static HRESULT WINAPI ivbsaxattributes_getTypeFromQName(
|
|||||||
int len;
|
int len;
|
||||||
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
||||||
return ISAXAttributes_getTypeFromQName(
|
return ISAXAttributes_getTypeFromQName(
|
||||||
(ISAXAttributes*)&This->lpSAXAttributesVtbl,
|
(ISAXAttributes*)&This->lpSAXAttributesVtbl, QName,
|
||||||
(const WCHAR*)QName, SysStringLen(QName),
|
SysStringLen(QName), (const WCHAR**)type, &len);
|
||||||
(const WCHAR**)type, &len);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ivbsaxattributes_getValue(
|
static HRESULT WINAPI ivbsaxattributes_getValue(
|
||||||
@ -534,10 +530,8 @@ static HRESULT WINAPI ivbsaxattributes_getValueFromName(
|
|||||||
int len;
|
int len;
|
||||||
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
||||||
return ISAXAttributes_getValueFromName(
|
return ISAXAttributes_getValueFromName(
|
||||||
(ISAXAttributes*)&This->lpSAXAttributesVtbl,
|
(ISAXAttributes*)&This->lpSAXAttributesVtbl, uri, SysStringLen(uri),
|
||||||
(const WCHAR*)uri, SysStringLen(uri),
|
localName, SysStringLen(localName), (const WCHAR**)value, &len);
|
||||||
(const WCHAR*)localName, SysStringLen(localName),
|
|
||||||
(const WCHAR**)value, &len);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ivbsaxattributes_getValueFromQName(
|
static HRESULT WINAPI ivbsaxattributes_getValueFromQName(
|
||||||
@ -548,9 +542,8 @@ static HRESULT WINAPI ivbsaxattributes_getValueFromQName(
|
|||||||
int len;
|
int len;
|
||||||
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
saxattributes *This = impl_from_IVBSAXAttributes( iface );
|
||||||
return ISAXAttributes_getValueFromQName(
|
return ISAXAttributes_getValueFromQName(
|
||||||
(ISAXAttributes*)&This->lpSAXAttributesVtbl,
|
(ISAXAttributes*)&This->lpSAXAttributesVtbl, QName,
|
||||||
(const WCHAR*)QName, SysStringLen(QName),
|
SysStringLen(QName), (const WCHAR**)value, &len);
|
||||||
(const WCHAR**)value, &len);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct IVBSAXAttributesVtbl ivbsaxattributes_vtbl =
|
static const struct IVBSAXAttributesVtbl ivbsaxattributes_vtbl =
|
||||||
@ -1329,7 +1322,7 @@ static void libxmlFatalError(void *ctx, const char *msg, ...)
|
|||||||
len = MultiByteToWideChar(CP_UNIXCP, 0, message, -1, NULL, 0);
|
len = MultiByteToWideChar(CP_UNIXCP, 0, message, -1, NULL, 0);
|
||||||
wszError = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*len);
|
wszError = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR)*len);
|
||||||
if(wszError)
|
if(wszError)
|
||||||
MultiByteToWideChar(CP_UNIXCP, 0, message, -1, (LPWSTR)wszError, len);
|
MultiByteToWideChar(CP_UNIXCP, 0, message, -1, wszError, len);
|
||||||
|
|
||||||
if(This->vbInterface)
|
if(This->vbInterface)
|
||||||
{
|
{
|
||||||
@ -2031,7 +2024,7 @@ static HRESULT internal_parse(
|
|||||||
hr = SafeArrayGetUBound(V_ARRAY(&varInput), 1, &uBound);
|
hr = SafeArrayGetUBound(V_ARRAY(&varInput), 1, &uBound);
|
||||||
if(hr != S_OK) break;
|
if(hr != S_OK) break;
|
||||||
dataRead = (uBound-lBound)*SafeArrayGetElemsize(V_ARRAY(&varInput));
|
dataRead = (uBound-lBound)*SafeArrayGetElemsize(V_ARRAY(&varInput));
|
||||||
hr = SafeArrayAccessData(V_ARRAY(&varInput), (void**)&pSAData);
|
hr = SafeArrayAccessData(V_ARRAY(&varInput), &pSAData);
|
||||||
if(hr != S_OK) break;
|
if(hr != S_OK) break;
|
||||||
hr = internal_parseBuffer(This, pSAData, dataRead, vbInterface);
|
hr = internal_parseBuffer(This, pSAData, dataRead, vbInterface);
|
||||||
SafeArrayUnaccessData(V_ARRAY(&varInput));
|
SafeArrayUnaccessData(V_ARRAY(&varInput));
|
||||||
@ -2267,7 +2260,7 @@ static HRESULT WINAPI saxxmlreader_QueryInterface(IVBSAXXMLReader* iface, REFIID
|
|||||||
}
|
}
|
||||||
else if( IsEqualGUID( riid, &IID_ISAXXMLReader ))
|
else if( IsEqualGUID( riid, &IID_ISAXXMLReader ))
|
||||||
{
|
{
|
||||||
*ppvObject = (ISAXXMLReader*)&This->lpSAXXMLReaderVtbl;
|
*ppvObject = &This->lpSAXXMLReaderVtbl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -546,7 +546,7 @@ static void test_saxreader(void)
|
|||||||
CreateStreamOnHGlobal(NULL, TRUE, &iStream);
|
CreateStreamOnHGlobal(NULL, TRUE, &iStream);
|
||||||
liSize.QuadPart = strlen(szTestXML);
|
liSize.QuadPart = strlen(szTestXML);
|
||||||
IStream_SetSize(iStream, liSize);
|
IStream_SetSize(iStream, liSize);
|
||||||
IStream_Write(iStream, (void const*)szTestXML, strlen(szTestXML), &bytesWritten);
|
IStream_Write(iStream, szTestXML, strlen(szTestXML), &bytesWritten);
|
||||||
liPos.QuadPart = 0;
|
liPos.QuadPart = 0;
|
||||||
IStream_Seek(iStream, liPos, STREAM_SEEK_SET, NULL);
|
IStream_Seek(iStream, liPos, STREAM_SEEK_SET, NULL);
|
||||||
V_VT(&var) = VT_UNKNOWN|VT_DISPATCH;
|
V_VT(&var) = VT_UNKNOWN|VT_DISPATCH;
|
||||||
|
@ -603,7 +603,7 @@ static HRESULT WINAPI domtext_appendData(
|
|||||||
if(p == NULL || SysStringLen(p) == 0)
|
if(p == NULL || SysStringLen(p) == 0)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
pContent = xmlChar_from_wchar( (WCHAR*)p );
|
pContent = xmlChar_from_wchar( p );
|
||||||
if(pContent)
|
if(pContent)
|
||||||
{
|
{
|
||||||
if(xmlTextConcat(pDOMNode->node, pContent, SysStringLen(p) ) == 0)
|
if(xmlTextConcat(pDOMNode->node, pContent, SysStringLen(p) ) == 0)
|
||||||
@ -669,7 +669,7 @@ static HRESULT WINAPI domtext_insertData(
|
|||||||
|
|
||||||
sNewString[nLengthP + nLength] = 0;
|
sNewString[nLengthP + nLength] = 0;
|
||||||
|
|
||||||
str = xmlChar_from_wchar((WCHAR*)sNewString);
|
str = xmlChar_from_wchar(sNewString);
|
||||||
if(str)
|
if(str)
|
||||||
{
|
{
|
||||||
xmlNodeSetContent(pDOMNode->node, str);
|
xmlNodeSetContent(pDOMNode->node, str);
|
||||||
|
@ -86,7 +86,7 @@ static HRESULT WINAPI xmldoc_QueryInterface(IXMLDocument *iface, REFIID riid, vo
|
|||||||
else if (IsEqualGUID(&IID_IPersistStreamInit, riid) ||
|
else if (IsEqualGUID(&IID_IPersistStreamInit, riid) ||
|
||||||
IsEqualGUID(&IID_IPersistStream, riid))
|
IsEqualGUID(&IID_IPersistStream, riid))
|
||||||
{
|
{
|
||||||
*ppvObject = (IPersistStreamInit *)&(This->lpvtblIPersistStreamInit);
|
*ppvObject = &(This->lpvtblIPersistStreamInit);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -516,7 +516,7 @@ static HRESULT WINAPI xmlelem_collection_QueryInterface(IXMLElementCollection *i
|
|||||||
}
|
}
|
||||||
else if (IsEqualGUID(riid, &IID_IEnumVARIANT))
|
else if (IsEqualGUID(riid, &IID_IEnumVARIANT))
|
||||||
{
|
{
|
||||||
*ppvObject = (IEnumVARIANT *)&(This->lpvtblIEnumVARIANT);
|
*ppvObject = &(This->lpvtblIEnumVARIANT);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user