From 37f61acb7703c67d2ad96a4a01f01f11869560df Mon Sep 17 00:00:00 2001 From: Joris Huizer Date: Wed, 8 Sep 2010 21:55:37 +0200 Subject: [PATCH] msxml3: Fix copy/paste error in get_lastChild functions. --- dlls/msxml3/attribute.c | 2 +- dlls/msxml3/docfrag.c | 2 +- dlls/msxml3/domdoc.c | 2 +- dlls/msxml3/element.c | 2 +- dlls/msxml3/entityref.c | 2 +- dlls/msxml3/node.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/msxml3/attribute.c b/dlls/msxml3/attribute.c index e96cb6e179d..f1b76434c14 100644 --- a/dlls/msxml3/attribute.c +++ b/dlls/msxml3/attribute.c @@ -263,7 +263,7 @@ static HRESULT WINAPI domattr_get_lastChild( TRACE("(%p)->(%p)\n", This, domNode); - return node_get_first_child(&This->node, domNode); + return node_get_last_child(&This->node, domNode); } static HRESULT WINAPI domattr_get_previousSibling( diff --git a/dlls/msxml3/docfrag.c b/dlls/msxml3/docfrag.c index 801d2a94268..7b97050eb9a 100644 --- a/dlls/msxml3/docfrag.c +++ b/dlls/msxml3/docfrag.c @@ -269,7 +269,7 @@ static HRESULT WINAPI domfrag_get_lastChild( TRACE("(%p)->(%p)\n", This, domNode); - return node_get_first_child(&This->node, domNode); + return node_get_last_child(&This->node, domNode); } static HRESULT WINAPI domfrag_get_previousSibling( diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c index 35a8f7c4443..c66ea74cb43 100644 --- a/dlls/msxml3/domdoc.c +++ b/dlls/msxml3/domdoc.c @@ -779,7 +779,7 @@ static HRESULT WINAPI domdoc_get_lastChild( TRACE("(%p)->(%p)\n", This, lastChild); - return node_get_first_child(&This->node, lastChild); + return node_get_last_child(&This->node, lastChild); } diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c index fa9b18d8293..1cce5e1c06a 100644 --- a/dlls/msxml3/element.c +++ b/dlls/msxml3/element.c @@ -278,7 +278,7 @@ static HRESULT WINAPI domelem_get_lastChild( TRACE("(%p)->(%p)\n", This, domNode); - return node_get_first_child(&This->node, domNode); + return node_get_last_child(&This->node, domNode); } static HRESULT WINAPI domelem_get_previousSibling( diff --git a/dlls/msxml3/entityref.c b/dlls/msxml3/entityref.c index b1217b2ce79..57e66830638 100644 --- a/dlls/msxml3/entityref.c +++ b/dlls/msxml3/entityref.c @@ -265,7 +265,7 @@ static HRESULT WINAPI entityref_get_lastChild( TRACE("(%p)->(%p)\n", This, domNode); - return node_get_first_child(&This->node, domNode); + return node_get_last_child(&This->node, domNode); } static HRESULT WINAPI entityref_get_previousSibling( diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c index f37b0818135..921ef1539dc 100644 --- a/dlls/msxml3/node.c +++ b/dlls/msxml3/node.c @@ -1844,7 +1844,7 @@ static HRESULT WINAPI unknode_get_lastChild( TRACE("(%p)->(%p)\n", This, domNode); - return node_get_first_child(&This->node, domNode); + return node_get_last_child(&This->node, domNode); } static HRESULT WINAPI unknode_get_previousSibling(