Jacek Caban : mshtml: Added nsIURI::GetSpecIgnoringRef implementation.
Module: wine Branch: master Commit: af9508a13a1c605d0ba9ab07af73e79a3b661a28 URL: http://source.winehq.org/git/wine.git/?a=commit;h=af9508a13a1c605d0ba9ab07af... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Nov 15 13:31:44 2011 +0100 mshtml: Added nsIURI::GetSpecIgnoringRef implementation. --- dlls/mshtml/nsio.c | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index b507446..e16c25e 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -2411,8 +2411,20 @@ static nsresult NSAPI nsURI_GetSpecIgnoringRef(nsIURL *iface, nsACString *aSpecI static nsresult NSAPI nsURI_GetHasRef(nsIURL *iface, PRBool *aHasRef) { nsWineURI *This = impl_from_nsIURL(iface); - FIXME("(%p)->(%p)\n", This, aHasRef); - return NS_ERROR_NOT_IMPLEMENTED; + BOOL b; + HRESULT hres; + + TRACE("(%p)->(%p)\n", This, aHasRef); + + if(!ensure_uri(This)) + return NS_ERROR_UNEXPECTED; + + hres = IUri_HasProperty(This->uri, Uri_PROPERTY_FRAGMENT, &b); + if(FAILED(hres)) + return NS_ERROR_FAILURE; + + *aHasRef = b; + return NS_OK; } static nsresult NSAPI nsURL_GetFilePath(nsIURL *iface, nsACString *aFilePath)
participants (1)
-
Alexandre Julliard