Commit f54a8ab7 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

rundll32: Build with -mwindows.

parent edae5d54
...@@ -3,7 +3,7 @@ TOPOBJDIR = ../.. ...@@ -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 = \
......
...@@ -211,7 +211,7 @@ static LPWSTR GetNextArg(LPWSTR *cmdline) ...@@ -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[]) ...@@ -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[]) ...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment