Vincent Povirk : shell32: Use the NO_UI flag in ShellExecute.

Alexandre Julliard julliard at winehq.org
Fri Dec 19 11:19:34 CST 2008


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

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Thu Dec 18 15:01:58 2008 -0600

shell32: Use the NO_UI flag in ShellExecute.

In my testing on Windows, I wasn't able to make ShellExecute display
any error dialogs.

---

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

diff --git a/dlls/shell32/shlexec.c b/dlls/shell32/shlexec.c
index 515bb48..4dc3f12 100644
--- a/dlls/shell32/shlexec.c
+++ b/dlls/shell32/shlexec.c
@@ -1831,7 +1831,7 @@ HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpOperation,LPCSTR lpFile,
           debugstr_a(lpParameters), debugstr_a(lpDirectory), iShowCmd);
 
     sei.cbSize = sizeof(sei);
-    sei.fMask = 0;
+    sei.fMask = SEE_MASK_FLAG_NO_UI;
     sei.hwnd = hWnd;
     sei.lpVerb = lpOperation;
     sei.lpFile = lpFile;
@@ -1917,7 +1917,7 @@ HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpOperation, LPCWSTR lpFile,
 
     TRACE("\n");
     sei.cbSize = sizeof(sei);
-    sei.fMask = 0;
+    sei.fMask = SEE_MASK_FLAG_NO_UI;
     sei.hwnd = hwnd;
     sei.lpVerb = lpOperation;
     sei.lpFile = lpFile;




More information about the wine-cvs mailing list