From: Jacek Caban Date: Sun, 4 Oct 2009 20:00:17 +0000 (+0200) Subject: mshtml: Fixed typo in IHTMLElement2::get_scrollHeight. X-Git-Tag: wine-1.1.31~231 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=0713fde4feb283c6f04e9585c18ec204e23ed4e1;p=wine%2Feterwine.git mshtml: Fixed typo in IHTMLElement2::get_scrollHeight. --- diff --git a/dlls/mshtml/htmlelem2.c b/dlls/mshtml/htmlelem2.c index b870a2a5ad..fd7cb69f46 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;