mshtml: Return NS_OK for empty aRef in nsIURL::SetRef.

oldstable
Jacek Caban 2009-11-01 19:20:04 +01:00 committed by Alexandre Julliard
parent fa3ac0a3d9
commit 007b398215
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}