Jacek Caban : mshtml: Pass window to GetCommandState and DoCommand.
Alexandre Julliard
julliard at winehq.org
Mon Dec 22 10:19:38 CST 2008
Module: wine
Branch: master
Commit: 7af33293a4129a2582ef95162417cae32e55889e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7af33293a4129a2582ef95162417cae32e55889e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Dec 22 01:10:37 2008 +0100
mshtml: Pass window to GetCommandState and DoCommand.
---
dlls/mshtml/editor.c | 2 +-
dlls/mshtml/olecmd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c
index efbaf23..7cbdf2e 100644
--- a/dlls/mshtml/editor.c
+++ b/dlls/mshtml/editor.c
@@ -137,7 +137,7 @@ static nsresult get_ns_command_state(NSContainer *This, const char *cmd, nsIComm
return nsres;
}
- nsres = nsICommandManager_GetCommandState(cmdmgr, cmd, NULL, nsparam);
+ nsres = nsICommandManager_GetCommandState(cmdmgr, cmd, This->doc->window->nswindow, nsparam);
if(NS_FAILED(nsres))
ERR("GetCommandState(%s) failed: %08x\n", debugstr_a(cmd), nsres);
diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c
index 0b1b477..a122e0c 100644
--- a/dlls/mshtml/olecmd.c
+++ b/dlls/mshtml/olecmd.c
@@ -52,7 +52,7 @@ void do_ns_command(NSContainer *This, const char *cmd, nsICommandParams *nsparam
return;
}
- nsres = nsICommandManager_DoCommand(cmdmgr, cmd, nsparam, NULL);
+ nsres = nsICommandManager_DoCommand(cmdmgr, cmd, nsparam, This->doc->window->nswindow);
if(NS_FAILED(nsres))
ERR("DoCommand(%s) failed: %08x\n", debugstr_a(cmd), nsres);
More information about the wine-cvs
mailing list