Vincent Povirk : rundll32: Build with -mwindows.
Alexandre Julliard
julliard at winehq.org
Fri Nov 7 07:24:06 CST 2008
Module: wine
Branch: master
Commit: f54a8ab71b5608fc1f2713df791b01d8e81c2a9b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f54a8ab71b5608fc1f2713df791b01d8e81c2a9b
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Thu Oct 30 11:10:34 2008 -0500
rundll32: Build with -mwindows.
---
programs/rundll32/Makefile.in | 2 +-
programs/rundll32/rundll32.c | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/programs/rundll32/Makefile.in b/programs/rundll32/Makefile.in
index c3a2bce..7bb09b0 100644
--- a/programs/rundll32/Makefile.in
+++ b/programs/rundll32/Makefile.in
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = rundll32.exe
-APPMODE = -mconsole
+APPMODE = -mwindows
IMPORTS = user32 kernel32
C_SRCS = \
diff --git a/programs/rundll32/rundll32.c b/programs/rundll32/rundll32.c
index 9846831..37f831a 100644
--- a/programs/rundll32/rundll32.c
+++ b/programs/rundll32/rundll32.c
@@ -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)
{
More information about the wine-cvs
mailing list