mshtml: Use proper constants as HRESULT return values.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
feb986ac5b
commit
7846f0947a
|
@ -291,7 +291,7 @@ static HRESULT WINAPI HTMLImgElement_put_src(IHTMLImgElement *iface, BSTR v)
|
||||||
if(NS_FAILED(nsres))
|
if(NS_FAILED(nsres))
|
||||||
ERR("SetSrc failed: %08x\n", nsres);
|
ERR("SetSrc failed: %08x\n", nsres);
|
||||||
|
|
||||||
return NS_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLImgElement_get_src(IHTMLImgElement *iface, BSTR *p)
|
static HRESULT WINAPI HTMLImgElement_get_src(IHTMLImgElement *iface, BSTR *p)
|
||||||
|
|
|
@ -1167,10 +1167,10 @@ HRESULT HTMLDOMNode_QI(HTMLDOMNode *This, REFIID riid, void **ppv)
|
||||||
*ppv = &This->IHTMLDOMNode2_iface;
|
*ppv = &This->IHTMLDOMNode2_iface;
|
||||||
}else if(IsEqualGUID(&IID_nsXPCOMCycleCollectionParticipant, riid)) {
|
}else if(IsEqualGUID(&IID_nsXPCOMCycleCollectionParticipant, riid)) {
|
||||||
*ppv = &node_ccp;
|
*ppv = &node_ccp;
|
||||||
return NS_OK;
|
return S_OK;
|
||||||
}else if(IsEqualGUID(&IID_nsCycleCollectionISupports, riid)) {
|
}else if(IsEqualGUID(&IID_nsCycleCollectionISupports, riid)) {
|
||||||
*ppv = &This->IHTMLDOMNode_iface;
|
*ppv = &This->IHTMLDOMNode_iface;
|
||||||
return NS_OK;
|
return S_OK;
|
||||||
}else if(dispex_query_interface(&This->event_target.dispex, riid, ppv)) {
|
}else if(dispex_query_interface(&This->event_target.dispex, riid, ppv)) {
|
||||||
return *ppv ? S_OK : E_NOINTERFACE;
|
return *ppv ? S_OK : E_NOINTERFACE;
|
||||||
}else {
|
}else {
|
||||||
|
|
|
@ -494,7 +494,7 @@ static HRESULT get_nsstyle_attr_nsval(nsIDOMCSSStyleDeclaration *nsstyle, stylei
|
||||||
|
|
||||||
nsAString_Finish(&str_name);
|
nsAString_Finish(&str_name);
|
||||||
|
|
||||||
return NS_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
|
static HRESULT nsstyle_to_bstr(const WCHAR *val, DWORD flags, BSTR *p)
|
||||||
|
|
|
@ -458,7 +458,7 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
*ret = window;
|
*ret = window;
|
||||||
return NS_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLWindow2_item(IHTMLWindow2 *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
|
static HRESULT WINAPI HTMLWindow2_item(IHTMLWindow2 *iface, VARIANT *pvarIndex, VARIANT *pvarResult)
|
||||||
|
|
|
@ -59,7 +59,7 @@ static HRESULT WINAPI wrapper_QueryInterface(IUnknown *iface, REFIID riid, void
|
||||||
return IUnknown_QueryInterface(This->ref_unk, riid, ppv);
|
return IUnknown_QueryInterface(This->ref_unk, riid, ppv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI wrapper_AddRef(IUnknown *iface)
|
static ULONG WINAPI wrapper_AddRef(IUnknown *iface)
|
||||||
{
|
{
|
||||||
iface_wrapper_t *This = impl_from_IUnknown(iface);
|
iface_wrapper_t *This = impl_from_IUnknown(iface);
|
||||||
LONG ref = InterlockedIncrement(&This->ref);
|
LONG ref = InterlockedIncrement(&This->ref);
|
||||||
|
@ -69,7 +69,7 @@ static HRESULT WINAPI wrapper_AddRef(IUnknown *iface)
|
||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI wrapper_Release(IUnknown *iface)
|
static ULONG WINAPI wrapper_Release(IUnknown *iface)
|
||||||
{
|
{
|
||||||
iface_wrapper_t *This = impl_from_IUnknown(iface);
|
iface_wrapper_t *This = impl_from_IUnknown(iface);
|
||||||
LONG ref = InterlockedDecrement(&This->ref);
|
LONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
|
@ -382,7 +382,7 @@ HRESULT WINAPI RunHTMLApplication( HINSTANCE hinst, HINSTANCE hPrevInst,
|
||||||
LPSTR szCmdLine, INT nCmdShow )
|
LPSTR szCmdLine, INT nCmdShow )
|
||||||
{
|
{
|
||||||
FIXME("%p %p %s %d\n", hinst, hPrevInst, debugstr_a(szCmdLine), nCmdShow );
|
FIXME("%p %p %s %d\n", hinst, hPrevInst, debugstr_a(szCmdLine), nCmdShow );
|
||||||
return 0;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue