Alexandre Julliard : shell32: Pass some of the ShellExecute flags through InvokeCommand.

Alexandre Julliard julliard at winehq.org
Wed Nov 14 07:27:18 CST 2007


Module: wine
Branch: master
Commit: 14eb294a484989daedf60ff598f9593f12416c8c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=14eb294a484989daedf60ff598f9593f12416c8c

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Nov 13 21:34:28 2007 +0100

shell32: Pass some of the ShellExecute flags through InvokeCommand.

---

 dlls/shell32/shelllink.c |    2 +-
 dlls/shell32/shlexec.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index 4268fe9..a3a850e 100644
--- a/dlls/shell32/shelllink.c
+++ b/dlls/shell32/shelllink.c
@@ -2564,7 +2564,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
 
     memset( &sei, 0, sizeof sei );
     sei.cbSize = sizeof sei;
-    sei.fMask = SEE_MASK_UNICODE | SEE_MASK_NOCLOSEPROCESS;
+    sei.fMask = SEE_MASK_UNICODE | (lpici->fMask & (SEE_MASK_NOASYNC|SEE_MASK_ASYNCOK|SEE_MASK_FLAG_NO_UI));
     sei.lpFile = path;
     sei.nShow = This->iShowCmd;
     sei.lpIDList = This->pPidl;
diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index 743d495..9800043 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -1172,7 +1172,7 @@ static HRESULT shellex_run_context_menu_default( IShellExtInit *obj,
 
     memset( &ici, 0, sizeof ici );
     ici.cbSize = sizeof ici;
-    ici.fMask = CMIC_MASK_UNICODE;
+    ici.fMask = CMIC_MASK_UNICODE | (sei->fMask & (SEE_MASK_NOASYNC|SEE_MASK_ASYNCOK|SEE_MASK_FLAG_NO_UI));
     ici.nShow = sei->nShow;
     ici.lpVerb = MAKEINTRESOURCEA( def );
     ici.hwnd = sei->hwnd;




More information about the wine-cvs mailing list