mshtml: Move Exec(CGID_ShellDocView, 37) call to match native.
This commit is contained in:
parent
c221a36d53
commit
8d4c839ab8
|
@ -165,24 +165,9 @@ static HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, BO
|
||||||
|
|
||||||
TRACE("got url: %s\n", debugstr_w(url));
|
TRACE("got url: %s\n", debugstr_w(url));
|
||||||
|
|
||||||
if(This->client) {
|
|
||||||
IOleCommandTarget *cmdtrg = NULL;
|
|
||||||
|
|
||||||
hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget,
|
|
||||||
(void**)&cmdtrg);
|
|
||||||
if(SUCCEEDED(hres)) {
|
|
||||||
VARIANT var;
|
|
||||||
|
|
||||||
V_VT(&var) = VT_I4;
|
|
||||||
V_I4(&var) = 0;
|
|
||||||
IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL);
|
|
||||||
|
|
||||||
IOleCommandTarget_Release(cmdtrg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(This->client) {
|
if(This->client) {
|
||||||
VARIANT silent, offline;
|
VARIANT silent, offline;
|
||||||
|
IOleCommandTarget *cmdtrg = NULL;
|
||||||
|
|
||||||
hres = get_client_disp_property(This->client, DISPID_AMBIENT_SILENT, &silent);
|
hres = get_client_disp_property(This->client, DISPID_AMBIENT_SILENT, &silent);
|
||||||
if(SUCCEEDED(hres)) {
|
if(SUCCEEDED(hres)) {
|
||||||
|
@ -200,6 +185,18 @@ static HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, BO
|
||||||
else if(V_BOOL(&silent))
|
else if(V_BOOL(&silent))
|
||||||
FIXME("offline == true\n");
|
FIXME("offline == true\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget,
|
||||||
|
(void**)&cmdtrg);
|
||||||
|
if(SUCCEEDED(hres)) {
|
||||||
|
VARIANT var;
|
||||||
|
|
||||||
|
V_VT(&var) = VT_I4;
|
||||||
|
V_I4(&var) = 0;
|
||||||
|
IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL);
|
||||||
|
|
||||||
|
IOleCommandTarget_Release(cmdtrg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bscallback = create_bscallback(mon);
|
bscallback = create_bscallback(mon);
|
||||||
|
|
Loading…
Reference in New Issue