summaryrefslogtreecommitdiffstats
path: root/win/winvnc
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2010-06-25 11:29:22 +0000
committerAdam Tkac <atkac@redhat.com>2010-06-25 11:29:22 +0000
commit01345fc0cacdf1d1b7938a6b3d74671cd13d7ab6 (patch)
tree1ad9f5386d535eeb07ea5fd9c46dbf8b9d2fbda8 /win/winvnc
parent8fb6ac0e9909417b9cddaf93ca9840dd7bbe1ce1 (diff)
downloadtigervnc-01345fc0cacdf1d1b7938a6b3d74671cd13d7ab6.tar.gz
tigervnc-01345fc0cacdf1d1b7938a6b3d74671cd13d7ab6.zip
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
Diffstat (limited to 'win/winvnc')
-rw-r--r--win/winvnc/winvnc.cxx5
1 files changed, 4 insertions, 1 deletions
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