VirtualBox

Ignore:
Timestamp:
May 4, 2010 11:26:52 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61039
Message:

Guest Control/Main/HostService: Proper shutdown / notification when VM gets shut down.

File:
1 edited

Legend:

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

    r28887 r29003  
    513513            GuestCall guest = mClientList.front();
    514514            rc = sendHostCmdToGuest(&newCmd,
    515                              guest.mHandle, guest.mNumParms, guest.mParms);
     515                                    guest.mHandle, guest.mNumParms, guest.mParms);
    516516
    517517            /* In any case the client did something, so wake up and remove from list. */
    518518            mpHelpers->pfnCallComplete(guest.mHandle, rc);
    519519            mClientList.pop_front();                       
    520 
    521             /* If command was understood by client, free and remove from host commands list. */
    522             if (RT_SUCCESS(rc))
     520           
     521            /* If we got VERR_TOO_MUCH_DATA we buffer the host command in the next block
     522             * and return success to the host. */           
     523            if (rc == VERR_TOO_MUCH_DATA)
     524            {
     525                rc = VINF_SUCCESS;
     526            }
     527            else /* If command was understood by the client, free and remove from host commands list. */
    523528            {
    524529                paramBufferFree(&newCmd.parmBuf);
    525530                fProcessed = true;
    526             }
    527             else if (rc == VERR_TOO_MUCH_DATA)
    528             {
    529                 /* If we got VERR_TOO_MUCH_DATA we buffer the host command in the next block
    530                  * and return success to the host. */
    531                 rc = VINF_SUCCESS;
    532531            }
    533532        }
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