mshtml: Fixed typo in IHTMLElement2::get_scrollHeight.

This commit is contained in:
Jacek Caban 2009-10-04 22:00:17 +02:00 committed by Alexandre Julliard
parent 908e715c83
commit 0713fde4fe
1 changed files with 2 additions and 2 deletions

View 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;