mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
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)
|
||||
FIXME("unsupported args\n");
|
||||
|
||||
if(This->usermode == EDITMODE)
|
||||
return S_OK;
|
||||
|
||||
This->usermode = EDITMODE;
|
||||
|
||||
if(This->frame)
|
||||
|
@ -2571,6 +2571,10 @@ static void test_exec_editmode(IUnknown *unk)
|
||||
IOleCommandTarget_Release(cmdtrg);
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user