Module: wine Branch: master Commit: 7af33293a4129a2582ef95162417cae32e55889e URL: http://source.winehq.org/git/wine.git/?a=commit;h=7af33293a4129a2582ef951624...
Author: Jacek Caban jacek@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);