[or-cvs] r14719: WINAPI WinMain rather than _tmain. (torbrowser/trunk/src/RelativeLink)

ioerror at seul.org ioerror at seul.org
Sun May 25 05:03:35 UTC 2008


Author: ioerror
Date: 2008-05-25 01:03:35 -0400 (Sun, 25 May 2008)
New Revision: 14719

Modified:
   torbrowser/trunk/src/RelativeLink/RelativeLink.c
Log:
 WINAPI WinMain rather than _tmain.


Modified: torbrowser/trunk/src/RelativeLink/RelativeLink.c
===================================================================
--- torbrowser/trunk/src/RelativeLink/RelativeLink.c	2008-05-25 04:58:58 UTC (rev 14718)
+++ torbrowser/trunk/src/RelativeLink/RelativeLink.c	2008-05-25 05:03:35 UTC (rev 14719)
@@ -20,7 +20,8 @@
 // End users will be able to use StartTorBrowserBundle.exe
 //
 
-int _tmain( int argc, TCHAR *argv[])
+//int _tmain( int argc, TCHAR *argv[])
+int WINAPI WinMain( NULL, NULL, NULL, SW_HIDE )
 {
     STARTUPINFO si;
     PROCESS_INFORMATION pi;
@@ -36,7 +37,8 @@
         NULL, ProgramToStart, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi ))
     {
          MessageBox ( NULL, TEXT ("Unable to start Vidalia"), NULL, NULL );
-         return;
+         return -1;
     }
 
+    return 0;
 }



More information about the tor-commits mailing list