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 = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = rundll32.exe
APPMODE = -mconsole
APPMODE = -mwindows
IMPORTS = user32 kernel32
C_SRCS = \
......
......@@ -211,7 +211,7 @@ static LPWSTR GetNextArg(LPWSTR *cmdline)
return arg;
}
int main(int argc, char* argv[])
int WINAPI WinMain(HINSTANCE instance, HINSTANCE hOldInstance, LPSTR szCmdArgs, int nCmdShow)
{
HWND hWnd;
LPWSTR szCmdLine;
......@@ -219,7 +219,7 @@ int main(int argc, char* argv[])
void *entry_point;
BOOL unicode, win16;
STARTUPINFOW info;
HMODULE hDll, instance;
HMODULE hDll;
hWnd=NULL;
hDll=NULL;
......@@ -281,7 +281,6 @@ int main(int argc, char* argv[])
GetStartupInfoW( &info );
if (!(info.dwFlags & STARTF_USESHOWWINDOW)) info.wShowWindow = SW_SHOWDEFAULT;
instance = GetModuleHandleW(NULL); /* Windows always uses that, not hDll */
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