Changeset 38636 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Sep 5, 2011 1:49:45 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73843
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r35617 r38636 30 30 #include <iprt/env.h> 31 31 #include <iprt/initterm.h> 32 #include <iprt/message.h> 32 33 #include <iprt/path.h> 33 34 #include <iprt/param.h> … … 159 160 int main(int argc, char *argv[]) 160 161 { 161 int rcClipboard, rc; 162 /* Initialise our runtime before all else. */ 163 int rc = RTR3InitExe(argc, &argv, 0); 164 if (RT_FAILURE(rc)) 165 return RTMsgInitFailure(rc); 166 167 int rcClipboard; 162 168 const char *pszFileName = RTPathFilename(argv[0]); 163 169 bool fDaemonise = true; … … 170 176 pszFileName = "VBoxClient"; 171 177 172 /* Initialise our runtime before all else. */173 rc = RTR3Init();174 if (RT_FAILURE(rc))175 {176 /* Of course, this should never happen. */177 RTPrintf("%s: Failed to initialise the run-time library, rc=%Rrc\n", pszFileName, rc);178 exit(1);179 }180 181 178 /* Initialise our global clean-up critical section */ 182 179 rc = RTCritSectInit(&g_critSect); … … 185 182 /* Of course, this should never happen. */ 186 183 RTPrintf("%s: Failed to initialise the global critical section, rc=%Rrc\n", pszFileName, rc); 187 exit(1);184 return 1; 188 185 } 189 186 … … 225 222 { 226 223 vboxClientUsage(pszFileName); 227 exit(0);224 return 0; 228 225 } 229 226 else … … 231 228 RTPrintf("%s: unrecognized option `%s'\n", pszFileName, argv[i]); 232 229 RTPrintf("Try `%s --help' for more information\n", pszFileName); 233 exit(1);230 return 1; 234 231 } 235 232 } … … 237 234 { 238 235 vboxClientUsage(pszFileName); 239 exit(1);236 return 1; 240 237 } 241 238 /* Get the path for the pidfiles */ -
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11-auto.cpp
r37173 r38636 685 685 int main( int argc, char **argv) 686 686 { 687 RTR3Init ();687 RTR3InitExe(argc, &argv, 0); 688 688 unsigned cErrs = 0; 689 689 g_pszTestName = RTPathFilename(argv[0]); -
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11.cpp
r36808 r38636 107 107 char ach[2]; 108 108 109 RTR3Init ();109 RTR3InitExe(argc, &argv, 0); 110 110 RTPrintf("VirtualBox guest additions X11 seamless mode testcase\n"); 111 111 if (0 == XInitThreads())
Note:
See TracChangeset
for help on using the changeset viewer.