Changeset 35722 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jan 26, 2011 4:37:16 PM (14 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r35638 r35722 4392 4392 4393 4393 AssertReturn(pvUser, VERR_INVALID_POINTER); 4394 4395 com::Initialize(); 4394 4396 4395 4397 // create an event queue for the current thread … … 4406 4408 4407 4409 delete eventQ; 4410 4411 com::Shutdown(); 4412 4408 4413 4409 4414 LogFlowFuncLeave(); -
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r35368 r35722 20 20 #include "VBox/com/defs.h" 21 21 22 #include "VBox/com/com.h" 23 22 24 #include "VBox/com/VirtualBox.h" 23 25 … … 157 159 lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */ 158 160 159 #if _WIN32_WINNT >= 0x0400 & defined(_ATL_FREE_THREADED) 160 HRESULT hRes = CoInitializeEx(NULL, COINIT_MULTITHREADED); 161 #else 162 HRESULT hRes = CoInitialize(NULL); 163 #endif 161 HRESULT hRes = com::Initialize(); 162 164 163 _ASSERTE(SUCCEEDED(hRes)); 165 164 _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox); … … 277 276 278 277 _Module.Term(); 279 CoUninitialize(); 278 279 com::Shutdown(); 280 280 281 Log(("SVCMAIN: Returning, COM server process ends.\n")); 281 282 return nRet;
Note:
See TracChangeset
for help on using the changeset viewer.