mshtml: Fixed typo in IHTMLElement2::get_scrollHeight.
authorJacek Caban <jacek@codeweavers.com>
Sun, 4 Oct 2009 20:00:17 +0000 (22:00 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 5 Oct 2009 11:46:00 +0000 (13:46 +0200)
dlls/mshtml/htmlelem2.c

index b870a2a5ad1f6324751a00e8b74a0404ecd3f149..fd7cb69f46d8fd8aec4173056ae636dc41d1b8af 100644 (file)
@@ -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;