From: Adam Tkac Date: Fri, 25 Jun 2010 11:29:22 +0000 (+0000) Subject: winvnc: Declare the main() function as WinMain() X-Git-Tag: v1.0.90~233 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=01345fc0cacdf1d1b7938a6b3d74671cd13d7ab6;p=tigervnc.git 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 --- 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