mshtml: Don't do anything in exec_editmode if edit mode is already set.
This commit is contained in:
parent
95e96fd547
commit
239b86fe8f
|
@ -523,6 +523,9 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
|
||||||
if(in || out)
|
if(in || out)
|
||||||
FIXME("unsupported args\n");
|
FIXME("unsupported args\n");
|
||||||
|
|
||||||
|
if(This->usermode == EDITMODE)
|
||||||
|
return S_OK;
|
||||||
|
|
||||||
This->usermode = EDITMODE;
|
This->usermode = EDITMODE;
|
||||||
|
|
||||||
if(This->frame)
|
if(This->frame)
|
||||||
|
|
|
@ -2571,6 +2571,10 @@ static void test_exec_editmode(IUnknown *unk)
|
||||||
IOleCommandTarget_Release(cmdtrg);
|
IOleCommandTarget_Release(cmdtrg);
|
||||||
|
|
||||||
editmode = TRUE;
|
editmode = TRUE;
|
||||||
|
|
||||||
|
hres = IOleCommandTarget_Exec(cmdtrg, &CGID_MSHTML, IDM_EDITMODE,
|
||||||
|
OLECMDEXECOPT_DODEFAULT, NULL, NULL);
|
||||||
|
ok(hres == S_OK, "Exec failed: %08x\n", hres);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HWND create_container_window(void)
|
static HWND create_container_window(void)
|
||||||
|
|
Loading…
Reference in New Issue