Changeset 59404 in vbox for trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-5.0 merged: 104938,104943,104950,104952-104953,104987-104988,104990
- Property svn:mergeinfo changed
-
trunk/src/VBox
- Property svn:mergeinfo changed
/branches/VBox-5.0/src/VBox (added) merged: 104938,104943,104950,104987-104988,104990
- Property svn:mergeinfo changed
-
trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp
r58556 r59404 802 802 int argc = __argc; 803 803 804 /* Check if we're already running and jump out if so. */ 805 /* Do not use a global namespace ("Global\\") for mutex name here, will blow up NT4 compatibility! */ 804 /* 805 * Init IPRT. This is _always_ the very first thing we do. 806 */ 807 int vrc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_STANDALONE_APP); 808 if (RT_FAILURE(vrc)) 809 return RTMsgInitFailure(vrc); 810 811 /* 812 * Check if we're already running and jump out if so. 813 * 814 * Note! Do not use a global namespace ("Global\\") for mutex name here, 815 * will blow up NT4 compatibility! 816 */ 806 817 HANDLE hMutexAppRunning = CreateMutex(NULL, FALSE, "VBoxStubInstaller"); 807 818 if ( hMutexAppRunning != NULL … … 812 823 hMutexAppRunning = NULL; 813 824 return RTEXITCODE_FAILURE; 814 }815 816 /* Init IPRT. */817 int vrc = RTR3InitExe(argc, &argv, 0);818 if (RT_FAILURE(vrc))819 {820 /* Close the mutex for this application instance. */821 CloseHandle(hMutexAppRunning);822 hMutexAppRunning = NULL;823 return RTMsgInitFailure(vrc);824 825 } 825 826
Note:
See TracChangeset
for help on using the changeset viewer.