Commit 5d17e7e4 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

ieframe: Send the original URL for error pages in FireDocumentComplete notification.

parent 82c03141
......@@ -839,6 +839,7 @@ static HRESULT WINAPI DocObjectService_FireDocumentComplete(
{
ShellBrowser *This = impl_from_IDocObjectService(iface);
IHTMLPrivateWindow *priv_window;
const WCHAR *orig_url;
VARIANTARG params[2];
DISPPARAMS dp = {params, NULL, 2, 0};
VARIANT url_var;
......@@ -858,6 +859,13 @@ static HRESULT WINAPI DocObjectService_FireDocumentComplete(
TRACE("got URL %s\n", debugstr_w(url));
orig_url = error_url_frag(url);
if(orig_url) {
BSTR tmp = SysAllocString(orig_url);
SysFreeString(url);
url = tmp;
}
V_VT(params) = (VT_BYREF|VT_VARIANT);
V_VARIANTREF(params) = &url_var;
......
......@@ -215,7 +215,6 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
arg = pDispParams->rgvarg;
ok(V_VT(arg) == (VT_BYREF | VT_VARIANT), "VT = %d\n", V_VT(arg));
ok(V_VT(V_VARIANTREF(arg)) == VT_BSTR, "VT = %d\n", V_VT(V_VARIANTREF(arg)));
todo_wine_if(called_Invoke_NAVIGATEERROR)
ok(!wcscmp(V_BSTR(V_VARIANTREF(arg)), navigate_url), "url = %s\n", wine_dbgstr_w(V_BSTR(V_VARIANTREF(arg))));
arg = pDispParams->rgvarg + 1;
......
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