Module: wine Branch: master Commit: 007b398215c770d35d4ca515de815697acfc68eb URL: http://source.winehq.org/git/wine.git/?a=commit;h=007b398215c770d35d4ca515de...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Nov 1 19:20:04 2009 +0100
mshtml: Return NS_OK for empty aRef in nsIURL::SetRef.
---
dlls/mshtml/nsio.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index b36f3fc..9792747 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -2000,12 +2000,17 @@ static nsresult NSAPI nsURL_GetRef(nsIWineURI *iface, nsACString *aRef) static nsresult NSAPI nsURL_SetRef(nsIWineURI *iface, const nsACString *aRef) { nsURI *This = NSURI_THIS(iface); + const char *refa;
TRACE("(%p)->(%s)\n", This, debugstr_nsacstr(aRef));
if(This->nsurl) return nsIURL_SetRef(This->nsurl, aRef);
+ nsACString_GetData(aRef, &refa); + if(!*refa) + return NS_OK; + FIXME("default action not implemented\n"); return NS_ERROR_NOT_IMPLEMENTED; }