Changeset 75873 in vbox for trunk/src/VBox/HostServices/GuestControl/service.cpp
- Timestamp:
- Dec 2, 2018 4:32:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r75872 r75873 81 81 #include <map> 82 82 #include <new> /* for std::nothrow*/ 83 #include <string>84 #include <list>85 83 86 84 … … 435 433 /** @} */ 436 434 } HostCommand; 437 typedef std::list< HostCommand *> HostCmdList;438 435 439 436 /** … … 1015 1012 * Cancel all pending host commands, replying with GUEST_DISCONNECTED if final recipient. 1016 1013 */ 1017 HostCommand *pCur , *pNext;1018 RTListForEachSafeCpp(&pClient->m_HostCmdList, pCur , pNext, HostCommand, m_ListEntry)1019 { 1020 RTListNodeRemove(&pCur ->m_ListEntry);1014 HostCommand *pCurCmd, *pNextCmd; 1015 RTListForEachSafeCpp(&pClient->m_HostCmdList, pCurCmd, pNextCmd, HostCommand, m_ListEntry) 1016 { 1017 RTListNodeRemove(&pCurCmd->m_ListEntry); 1021 1018 1022 1019 VBOXHGCMSVCPARM Parm; 1023 HGCMSvcSetU32(&Parm, pCur ->m_idContext);1020 HGCMSvcSetU32(&Parm, pCurCmd->m_idContext); 1024 1021 int rc2 = pThis->hostCallback(GUEST_DISCONNECTED, 1, &Parm); 1025 1022 LogFlowFunc(("Cancelled host command %u (%s) with idContext=%#x -> %Rrc\n", 1026 pCur ->mMsgType, GstCtrlHostFnName((eHostFn)pCur->mMsgType), pCur->m_idContext, rc2));1023 pCurCmd->mMsgType, GstCtrlHostFnName((eHostFn)pCurCmd->mMsgType), pCurCmd->m_idContext, rc2)); 1027 1024 RT_NOREF(rc2); 1028 1025 1029 pCur ->Delete();1026 pCurCmd->Delete(); 1030 1027 } 1031 1028
Note:
See TracChangeset
for help on using the changeset viewer.