From 01345fc0cacdf1d1b7938a6b3d74671cd13d7ab6 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 25 Jun 2010 11:29:22 +0000 Subject: [PATCH] winvnc: Declare the main() function as WinMain() git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4074 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/winvnc/winvnc.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/win/winvnc/winvnc.cxx b/win/winvnc/winvnc.cxx index 63d8b4e8..281494de 100644 --- a/win/winvnc/winvnc.cxx +++ b/win/winvnc/winvnc.cxx @@ -218,7 +218,7 @@ static void processParams(int argc, char** argv) { // -=- main // -int main(int argc, char** argv) { +int WINAPI WinMain(HINSTANCE inst, HINSTANCE prevInst, char* cmdLine, int cmdShow) { int result = 0; try { @@ -234,6 +234,9 @@ int main(int argc, char** argv) { // - Print program details and process the command line programInfo(); + + int argc = __argc; + char **argv = __argv; processParams(argc, argv); // - Run the server if required -- 2.39.5