Changeset 69803 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Nov 22, 2017 11:42:14 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r69783 r69803 79 79 HINSTANCE g_hInstance = NULL; 80 80 #ifdef VBOX_WITH_SDS 81 /** This is set if we're connected to SDS and should discount a server lock 82 * that it is holding when deciding whether we're idle or not. */ 81 /** This is set if we're connected to SDS. 82 * 83 * It means that we should discount a server lock that it is holding when 84 * deciding whether we're idle or not. 85 * 86 * Also, when set we deregister with SDS during class factory destruction. We 87 * exploit this to prevent attempts to deregister during or after COM shutdown. 88 */ 83 89 bool g_fRegisteredWithVBoxSDS = false; 84 90 #endif … … 220 226 } 221 227 222 /** @todo Need to check if this is okay wrt COM termination. */ 223 i_deregisterWithSds(); 228 /* We usually get here during g_pModule->Term() via CoRevokeClassObjec, so COM 229 probably working well enough to talk to SDS when we get here. */ 230 if (g_fRegisteredWithVBoxSDS) 231 i_deregisterWithSds(); 224 232 } 225 233 … … 323 331 if (SUCCEEDED(hrc)) 324 332 { 325 g_fRegisteredWithVBoxSDS = true;333 g_fRegisteredWithVBoxSDS = !*ppOtherVirtualBox; 326 334 return hrc; 327 335 } … … 901 909 g_pModule->Term(); 902 910 911 #ifdef VBOX_WITH_SDS 912 g_fRegisteredWithVBoxSDS = false; /* Don't trust COM LPC to work right from now on. */ 913 #endif 903 914 com::Shutdown(); 904 915
Note:
See TracChangeset
for help on using the changeset viewer.