Changeset 71719 in vbox
- Timestamp:
- Apr 6, 2018 6:48:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/win/RpcChannelHook.cpp
r71716 r71719 76 76 * @todo Consider using RTONCE to serialize this (though it's likely unncessary 77 77 * due to COM). 78 * 79 * @todo r=bird: Failure here must be fatal to VBoxProxyStub loading, or we can 80 * kiss the reliablity of VBoxSVC good bye! 78 81 */ 79 82 void SetupClientRpcChannelHook(void) 80 83 { 81 84 // register single hook only 85 /** @todo r=bird: This is called from DllMain/AttachProcess, so it should 86 * only happen once. OTOH, do we need to do anything on detach? */ 82 87 if (!CRpcChannelHook::IsChannelHookRegistered()) 83 88 { … … 170 175 RTPROCESS pid = RTProcSelf(); 171 176 hrc = ptrClientList->RegisterClient(pid); 172 LogFunc(("Called VBoxSDS RegisterClient() : hr=%Rhrf\n", hrc)); 177 if (SUCCEEDED(hrc)) 178 LogFunc(("Called VBoxSDS RegisterClient() : hr=%Rhrf\n", hrc)); 179 else 180 LogRel(("ERROR! Call to VBoxSDS::RegisterClient failed: hr=%Rhrf\n", hrc)); 173 181 } 174 182 else 175 183 { 176 Log Func(("Errorto connect to VBoxSDS: hr=%Rhrf\n", hrc));184 LogRel(("ERROR! Failed to connect to VBoxSDS: hr=%Rhrf\n", hrc)); 177 185 } 186 /** @todo r=bird: Failure of any of above calls shall result in 187 * failure to get IVirtualBox! Because the alternative is that VBoxSVC 188 * will quit early on us and potentally mess up the VM. Much better 189 * to fail before its even started. */ 178 190 } 179 191 }
Note:
See TracChangeset
for help on using the changeset viewer.