Commit 47a7d835 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't include leading '?' in nsIURL::GetSearch implementation.

parent c67f930a
......@@ -2627,10 +2627,27 @@ static nsresult NSAPI nsURL_SetFilePath(nsIFileURL *iface, const nsACString *aFi
static nsresult NSAPI nsURL_GetQuery(nsIFileURL *iface, nsACString *aQuery)
{
nsWineURI *This = impl_from_nsIFileURL(iface);
WCHAR *ptr;
BSTR query;
nsresult nsres;
HRESULT hres;
TRACE("(%p)->(%p)\n", This, aQuery);
return get_uri_string(This, Uri_PROPERTY_QUERY, aQuery);
if(!ensure_uri(This))
return NS_ERROR_UNEXPECTED;
hres = IUri_GetQuery(This->uri, &query);
if(FAILED(hres))
return NS_ERROR_FAILURE;
ptr = query;
if(ptr && *ptr == '?')
ptr++;
nsres = return_wstr_nsacstr(aQuery, ptr, -1);
SysFreeString(query);
return nsres;
}
static nsresult NSAPI nsURL_SetQuery(nsIFileURL *iface, const nsACString *aQuery)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment