static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRulesCollection *iface, LONG *p) { HTMLStyleSheetRulesCollection *This = impl_from_IHTMLStyleSheetRulesCollection(iface); UINT32 len = 0; TRACE("(%p)->(%p)\n", This, p); if(This->nslist) { nsresult nsres; nsres = nsIDOMCSSRuleList_GetLength(This->nslist, &len); if(NS_FAILED(nsres)) ERR("GetLength failed: %08x\n", nsres); } *p = len; return S_OK; }
static HRESULT WINAPI HTMLStyleSheetRulesCollection_get_length(IHTMLStyleSheetRulesCollection *iface, long *p) { HTMLStyleSheetRulesCollection *This = HTMLSTYLERULESCOL_THIS(iface); PRUint32 len = 0; TRACE("(%p)->(%p)\n", This, p); if(This->nslist) { nsresult nsres; nsres = nsIDOMCSSRuleList_GetLength(This->nslist, &len); if(NS_FAILED(nsres)) ERR("GetLength failed: %08x\n", nsres); } *p = len; return S_OK; }