Commit 53fe2d15 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed query_edit_status when Gecko is not available.

parent 1e85e7c7
...@@ -307,18 +307,15 @@ static DWORD query_edit_status(HTMLDocument *This, const char *nscmd) ...@@ -307,18 +307,15 @@ static DWORD query_edit_status(HTMLDocument *This, const char *nscmd)
nsICommandParams *nsparam; nsICommandParams *nsparam;
PRBool b = FALSE; PRBool b = FALSE;
if(!This->nscontainer) {
FIXME("dummy not implemented\n");
return OLECMDF_SUPPORTED;
}
if(This->usermode != EDITMODE || This->readystate < READYSTATE_INTERACTIVE) if(This->usermode != EDITMODE || This->readystate < READYSTATE_INTERACTIVE)
return OLECMDF_SUPPORTED; return OLECMDF_SUPPORTED;
nsparam = create_nscommand_params(); if(This->nscontainer) {
get_ns_command_state(This->nscontainer, nscmd, nsparam); nsparam = create_nscommand_params();
get_ns_command_state(This->nscontainer, nscmd, nsparam);
nsICommandParams_GetBooleanValue(nsparam, "state_enabled", &b); nsICommandParams_GetBooleanValue(nsparam, "state_all", &b);
}
return OLECMDF_SUPPORTED | OLECMDF_ENABLED | (b ? OLECMDF_LATCHED : 0); return OLECMDF_SUPPORTED | OLECMDF_ENABLED | (b ? OLECMDF_LATCHED : 0);
} }
......
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