VirtualBox

Changeset 75805 in vbox


Ignore:
Timestamp:
Nov 29, 2018 5:39:47 AM (6 years ago)
Author:
vboxsync
Message:

VBoxGuestCtrlSvc: Some fixes to the new code. bugref:9313

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/service.cpp

    r75801 r75805  
    11011101        RTListForEachSafe(&pThis->m_PreparedSessions, pCur, pNext, GstCtrlPreparedSession, ListEntry)
    11021102        {
     1103            RTListNodeRemove(&pCur->ListEntry);
    11031104            RTMemFree(pCur);
    11041105        }
     
    12061207        m_fLegacyMode    = false;
    12071208        rClientState.m_fIsMaster = true;
     1209        Log(("[Client %RU32] is master.\n", idClient));
    12081210    }
    12091211    else
     
    14701472    if (!rClientState.mHostCmdList.empty())
    14711473    {
    1472         int rc = mpHelpers->pfnCallComplete(hCall, VERR_NOT_FOUND);
     1474        int rc = mpHelpers->pfnCallComplete(hCall, VINF_SUCCESS);
    14731475        if (RT_SUCCESS(rc))
    14741476        {
     
    15671569     * Try complete the command.
    15681570     */
    1569     int rc = mpHelpers->pfnCallComplete(hCall, VERR_NOT_FOUND);
     1571    int rc = mpHelpers->pfnCallComplete(hCall, VINF_SUCCESS);
    15701572    if (RT_SUCCESS(rc))
    15711573        LogFlow(("Prepared %u with a %#x byte key (%u pending).\n", idSession, cbKey, m_cPreparedSessions));
     
    16181620        RTListForEachSafe(&m_PreparedSessions, pCur, pNext, GstCtrlPreparedSession, ListEntry)
    16191621        {
     1622            RTListNodeRemove(&pCur->ListEntry);
    16201623            RTMemFree(pCur);
    16211624            rc = VINF_SUCCESS;
     
    16301633            if (pCur->idSession == idSession)
    16311634            {
     1635                RTListNodeRemove(&pCur->ListEntry);
    16321636                RTMemFree(pCur);
    16331637                m_cPreparedSessions -= 1;
     
    16961700                 * We've got a match. Try complete the request and
    16971701                 */
    1698                 int rc = mpHelpers->pfnCallComplete(hCall, VERR_NOT_FOUND);
     1702                int rc = mpHelpers->pfnCallComplete(hCall, VINF_SUCCESS);
    16991703                if (RT_SUCCESS(rc))
    17001704                {
    17011705                    rClientState.m_idSession = idSession;
    17021706
     1707                    RTListNodeRemove(&pCur->ListEntry);
    17031708                    RTMemFree(pCur);
    17041709                    m_cPreparedSessions -= 1;
     1710                    Log(("[Client %RU32] accepted session id %u.\n", idClient, idSession));
    17051711                }
    17061712                else
     
    20182024{
    20192025    LogFlowFunc(("[Client %RU32] idFunction=%RU32 (%s), cParms=%RU32, paParms=0x%p\n",
    2020                  idClient, idFunction, GstCtrlHostFnName((eHostFn)idFunction), cParms, paParms));
     2026                 idClient, idFunction, GstCtrlGuestFnName((eGuestFn)idFunction), cParms, paParms));
    20212027    RT_NOREF(tsArrival, pvClient);
    20222028
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette