VirtualBox

Changeset 50820 in vbox for trunk/src


Ignore:
Timestamp:
Mar 19, 2014 12:16:37 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92871
Message:

VMMDev: remove failed HGCM commands from the pending command list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDevHGCM.cpp

    r49846 r50820  
    516516
    517517        rc = pThis->pHGCMDrv->pfnConnect (pThis->pHGCMDrv, pCmd, &pHGCMConnectCopy->loc, &pHGCMConnectCopy->u32ClientID);
     518
     519        if (RT_FAILURE(rc))
     520            vmmdevHGCMRemoveCommand(pThis, pCmd);
    518521    }
    519522    else
     
    555558            *pfHGCMCalled = true;
    556559        }
     560        /* else
     561         *  ... the caller will also execute vmmdevHGCMRemoveCommand() for us */
    557562    }
    558563    else
     
    581586
    582587        rc = pThis->pHGCMDrv->pfnDisconnect (pThis->pHGCMDrv, pCmd, pHGCMDisconnect->u32ClientID);
     588
     589        if (RT_FAILURE(rc))
     590            vmmdevHGCMRemoveCommand(pThis, pCmd);
    583591    }
    584592    else
     
    615623            *pfHGCMCalled = true;
    616624        }
     625        /* else
     626         *  ... the caller will also execute vmmdevHGCMRemoveCommand() for us */
    617627    }
    618628    else
     
    17361746            *pfHGCMCalled = true;
    17371747        }
     1748        /* else
     1749         *  ... the caller will also execute vmmdevHGCMRemoveCommand() for us */
    17381750    }
    17391751
Note: See TracChangeset for help on using the changeset viewer.

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