From 69496947403ceef3fefaf656d5b6af1f3cb61ba1 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 12 Nov 2008 10:16:24 -0600 Subject: [PATCH] msiexec: Build with -mwindows. --- programs/msiexec/Makefile.in | 2 +- programs/msiexec/msiexec.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/msiexec/Makefile.in b/programs/msiexec/Makefile.in index ef0af91d5c9..f9cb570eebd 100644 --- a/programs/msiexec/Makefile.in +++ b/programs/msiexec/Makefile.in @@ -4,7 +4,7 @@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = msiexec.exe -APPMODE = -mconsole +APPMODE = -mwindows IMPORTS = msi ole32 advapi32 user32 kernel32 C_SRCS = \ diff --git a/programs/msiexec/msiexec.c b/programs/msiexec/msiexec.c index 7b00eb7776b..9221fa2a9ce 100644 --- a/programs/msiexec/msiexec.c +++ b/programs/msiexec/msiexec.c @@ -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 ); /*