Frank Richter : shdocvw: Install Mozilla control silently.
Alexandre Julliard
julliard at wine.codeweavers.com
Sun May 28 11:33:27 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: ea4f92bdd950afb2bafb49bb123b4c482d43d6b4
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ea4f92bdd950afb2bafb49bb123b4c482d43d6b4
Author: Frank Richter <frank.richter at gmail.com>
Date: Sun May 28 04:12:23 2006 +0200
shdocvw: Install Mozilla control silently.
---
dlls/shdocvw/shdocvw_main.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/shdocvw/shdocvw_main.c b/dlls/shdocvw/shdocvw_main.c
index f559e99..569d3a2 100644
--- a/dlls/shdocvw/shdocvw_main.c
+++ b/dlls/shdocvw/shdocvw_main.c
@@ -299,7 +299,9 @@ static DWORD WINAPI ThreadFunc( LPVOID i
IBindStatusCallback *dl;
static const WCHAR szUrlVal[] = {'M','o','z','i','l','l','a','U','r','l',0};
static const WCHAR szFileProtocol[] = {'f','i','l','e',':','/','/','/',0};
+ static const WCHAR szSilentParameter[] = {' ','/','S',0};
WCHAR path[MAX_PATH], szUrl[MAX_PATH];
+ WCHAR szCommandLine[MAX_PATH+(sizeof( szSilentParameter )/sizeof( WCHAR ))];
LPWSTR p;
STARTUPINFOW si;
PROCESS_INFORMATION pi;
@@ -347,7 +349,9 @@ static DWORD WINAPI ThreadFunc( LPVOID i
/* run it */
memset( &si, 0, sizeof si );
si.cb = sizeof si;
- r = CreateProcessW( path, NULL, NULL, NULL, 0, 0, NULL, NULL, &si, &pi );
+ strcpyW( szCommandLine, path );
+ strcatW( szCommandLine, szSilentParameter );
+ r = CreateProcessW( path, szCommandLine, NULL, NULL, 0, 0, NULL, NULL, &si, &pi );
if( !r )
goto end;
WaitForSingleObject( pi.hProcess, INFINITE );
More information about the wine-cvs
mailing list