VirtualBox

Changeset 104561 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
May 8, 2024 3:43:46 PM (10 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163099
Message:

VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp: Make clientSessionCancelPrepared() return an actual status code if the session ID wasn't found and idSession != UINT32_MAX instead of VINF_SUCCESS, bugref:3409

File:
1 edited

Legend:

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

    r102654 r104561  
    18241824     * Do the work.
    18251825     */
    1826     int rc = VWRN_NOT_FOUND;
     1826    int rc = VINF_SUCCESS;
    18271827    if (idSession == UINT32_MAX)
    18281828    {
     
    18321832            RTListNodeRemove(&pCur->ListEntry);
    18331833            RTMemFree(pCur);
    1834             rc = VINF_SUCCESS;
    18351834        }
    18361835        m_cPreparedSessions = 0;
     
    18381837    else
    18391838    {
     1839        rc = VWRN_NOT_FOUND;
    18401840        GstCtrlPreparedSession *pCur, *pNext;
    18411841        RTListForEachSafe(&m_PreparedSessions, pCur, pNext, GstCtrlPreparedSession, ListEntry)
     
    18511851        }
    18521852    }
    1853     return VINF_SUCCESS;
     1853    return rc;
    18541854}
    18551855
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