wine/dlls/msxml3 node.c
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 2 04:55:04 CST 2005
ChangeSet ID: 21031
CVSROOT: /opt/cvs-commit
Module name: wine
Changes by: julliard at winehq.org 2005/11/02 04:55:03
Modified files:
dlls/msxml3 : node.c
Log message:
Mike McCormack <mike at codeweavers.com>
Implement IXMLDOMNode::get_nodeName.
Patch: http://cvs.winehq.org/patch.py?id=21031
Old revision New revision Changes Path
1.9 1.10 +23 -2 wine/dlls/msxml3/node.c
Index: wine/dlls/msxml3/node.c
diff -u -p wine/dlls/msxml3/node.c:1.9 wine/dlls/msxml3/node.c:1.10
--- wine/dlls/msxml3/node.c:1.9 2 Nov 2005 10:55: 3 -0000
+++ wine/dlls/msxml3/node.c 2 Nov 2005 10:55: 3 -0000
@@ -173,8 +173,29 @@ static HRESULT WINAPI xmlnode_get_nodeNa
IXMLDOMNode *iface,
BSTR* name)
{
- FIXME("\n");
- return E_NOTIMPL;
+ xmlnode *This = impl_from_IXMLDOMNode( iface );
+ const xmlChar *str;
+
+ TRACE("%p\n", This );
+
+ if ( !This->node )
+ return E_FAIL;
+
+ switch( This->node->type )
+ {
+ case XML_TEXT_NODE:
+ str = (const xmlChar*) "#text";
+ break;
+ default:
+ str = This->node->name;
+ break;
+ }
+
+ *name = bstr_from_xmlChar( str );
+ if (!*name)
+ return S_FALSE;
+
+ return S_OK;
}
BSTR bstr_from_xmlChar( const xmlChar *buf )
More information about the wine-cvs
mailing list