Jacek Caban : mshtml: Fixed query_edit_status when Gecko is not
available.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 6 05:48:35 CST 2006
Module: wine
Branch: master
Commit: 53fe2d1531f3a11529d1af80886eb3c192d5e33e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=53fe2d1531f3a11529d1af80886eb3c192d5e33e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Nov 5 13:52:34 2006 +0100
mshtml: Fixed query_edit_status when Gecko is not available.
---
dlls/mshtml/olecmd.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c
index 68762a9..dfeb81d 100644
--- a/dlls/mshtml/olecmd.c
+++ b/dlls/mshtml/olecmd.c
@@ -307,18 +307,15 @@ static DWORD query_edit_status(HTMLDocum
nsICommandParams *nsparam;
PRBool b = FALSE;
- if(!This->nscontainer) {
- FIXME("dummy not implemented\n");
- return OLECMDF_SUPPORTED;
- }
-
if(This->usermode != EDITMODE || This->readystate < READYSTATE_INTERACTIVE)
return OLECMDF_SUPPORTED;
- nsparam = create_nscommand_params();
- get_ns_command_state(This->nscontainer, nscmd, nsparam);
+ if(This->nscontainer) {
+ 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);
}
More information about the wine-cvs
mailing list