rundll32: Build with -mwindows.

This commit is contained in:
Vincent Povirk 2008-10-30 11:10:34 -05:00 committed by Alexandre Julliard
parent edae5d545e
commit f54a8ab71b
2 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
MODULE = rundll32.exe MODULE = rundll32.exe
APPMODE = -mconsole APPMODE = -mwindows
IMPORTS = user32 kernel32 IMPORTS = user32 kernel32
C_SRCS = \ C_SRCS = \

View File

@ -211,7 +211,7 @@ static LPWSTR GetNextArg(LPWSTR *cmdline)
return arg; return arg;
} }
int main(int argc, char* argv[]) int WINAPI WinMain(HINSTANCE instance, HINSTANCE hOldInstance, LPSTR szCmdArgs, int nCmdShow)
{ {
HWND hWnd; HWND hWnd;
LPWSTR szCmdLine; LPWSTR szCmdLine;
@ -219,7 +219,7 @@ int main(int argc, char* argv[])
void *entry_point; void *entry_point;
BOOL unicode, win16; BOOL unicode, win16;
STARTUPINFOW info; STARTUPINFOW info;
HMODULE hDll, instance; HMODULE hDll;
hWnd=NULL; hWnd=NULL;
hDll=NULL; hDll=NULL;
@ -281,7 +281,6 @@ int main(int argc, char* argv[])
GetStartupInfoW( &info ); GetStartupInfoW( &info );
if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWDEFAULT; if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWDEFAULT;
instance = GetModuleHandleW(NULL); /* Windows always uses that, not hDll */
if (unicode) if (unicode)
{ {