Index: /trunk/src/VBox/HostServices/GuestControl/service.cpp
===================================================================
--- /trunk/src/VBox/HostServices/GuestControl/service.cpp	(revision 75872)
+++ /trunk/src/VBox/HostServices/GuestControl/service.cpp	(revision 75873)
@@ -81,6 +81,4 @@
 #include <map>
 #include <new>      /* for std::nothrow*/
-#include <string>
-#include <list>
 
 
@@ -435,5 +433,4 @@
     /** @} */
 } HostCommand;
-typedef std::list< HostCommand *> HostCmdList;
 
 /**
@@ -1015,17 +1012,17 @@
      * Cancel all pending host commands, replying with GUEST_DISCONNECTED if final recipient.
      */
-    HostCommand *pCur, *pNext;
-    RTListForEachSafeCpp(&pClient->m_HostCmdList, pCur, pNext, HostCommand, m_ListEntry)
-    {
-        RTListNodeRemove(&pCur->m_ListEntry);
+    HostCommand *pCurCmd, *pNextCmd;
+    RTListForEachSafeCpp(&pClient->m_HostCmdList, pCurCmd, pNextCmd, HostCommand, m_ListEntry)
+    {
+        RTListNodeRemove(&pCurCmd->m_ListEntry);
 
         VBOXHGCMSVCPARM Parm;
-        HGCMSvcSetU32(&Parm, pCur->m_idContext);
+        HGCMSvcSetU32(&Parm, pCurCmd->m_idContext);
         int rc2 = pThis->hostCallback(GUEST_DISCONNECTED, 1, &Parm);
         LogFlowFunc(("Cancelled host command %u (%s) with idContext=%#x -> %Rrc\n",
-                     pCur->mMsgType, GstCtrlHostFnName((eHostFn)pCur->mMsgType), pCur->m_idContext, rc2));
+                     pCurCmd->mMsgType, GstCtrlHostFnName((eHostFn)pCurCmd->mMsgType), pCurCmd->m_idContext, rc2));
         RT_NOREF(rc2);
 
-        pCur->Delete();
+        pCurCmd->Delete();
     }
 
