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@
VPATH = @srcdir@
MODULE = msiexec.exe
APPMODE = -mconsole
APPMODE = -mwindows
IMPORTS = msi ole32 advapi32 user32 kernel32
C_SRCS = \

View File

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