Jacek Caban : mshtml: Fixed typo in IHTMLElement2::get_scrollHeight.

Alexandre Julliard julliard at winehq.org
Mon Oct 5 09:54:27 CDT 2009


Module: wine
Branch: master
Commit: 0713fde4feb283c6f04e9585c18ec204e23ed4e1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0713fde4feb283c6f04e9585c18ec204e23ed4e1

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Oct  4 22:00:17 2009 +0200

mshtml: Fixed typo in IHTMLElement2::get_scrollHeight.

---

 dlls/mshtml/htmlelem2.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlelem2.c b/dlls/mshtml/htmlelem2.c
index b870a2a..fd7cb69 100644
--- a/dlls/mshtml/htmlelem2.c
+++ b/dlls/mshtml/htmlelem2.c
@@ -773,7 +773,7 @@ static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, LONG *
 
     TRACE("(%p)->(%p)\n", This, p);
 
-    nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
+    nsres = nsIDOMElement_QueryInterface(This->nselem, &IID_nsIDOMNSElement, (void**)&nselem);
     if(NS_SUCCEEDED(nsres)) {
         nsres = nsIDOMNSElement_GetScrollHeight(nselem, &height);
         nsIDOMNSElement_Release(nselem);
@@ -783,7 +783,7 @@ static HRESULT WINAPI HTMLElement2_get_scrollHeight(IHTMLElement2 *iface, LONG *
         ERR("Could not get nsIDOMNSElement interface: %08x\n", nsres);
     }
 
-    *p = height == -1 ? 0 : height;
+    *p = height;
     TRACE("*p = %d\n", *p);
 
     return S_OK;




More information about the wine-cvs mailing list