msiexec: Build with -mwindows.

This commit is contained in:
Vincent Povirk 2008-11-12 10:16:24 -06:00 committed by Alexandre Julliard
parent a4b62b1781
commit 6949694740
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = msiexec.exe MODULE = msiexec.exe
APPMODE = -mconsole APPMODE = -mwindows
IMPORTS = msi ole32 advapi32 user32 kernel32 IMPORTS = msi ole32 advapi32 user32 kernel32
C_SRCS = \ C_SRCS = \

View File

@ -493,7 +493,7 @@ static BOOL process_args_from_reg( LPWSTR ident, int *pargc, WCHAR ***pargv )
return ret; return ret;
} }
int main(int argc, char **argv) int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{ {
int i; int i;
BOOL FunctionInstall = FALSE; BOOL FunctionInstall = FALSE;
@ -529,9 +529,10 @@ int main(int argc, char **argv)
LPWSTR DllName = NULL; LPWSTR DllName = NULL;
DWORD ReturnCode; DWORD ReturnCode;
int argc;
LPWSTR *argvW = NULL; LPWSTR *argvW = NULL;
/* overwrite the command line */ /* parse the command line */
process_args( GetCommandLineW(), &argc, &argvW ); process_args( GetCommandLineW(), &argc, &argvW );
/* /*