VirtualBox

Changeset 20720 in vbox


Ignore:
Timestamp:
Jun 19, 2009 12:25:18 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48833
Message:

ConsoleImpl.cpp: VMR3ReqCall w/ cMillis=0 may return VERR_TIMEOUT or VINF_SUCCESS, that's not going to change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r20719 r20720  
    33163316     */
    33173317    PVMREQ pReq;
    3318     int vrc = VMR3ReqCall (mpVM, 0, &pReq, 0 /* no wait! */,
     3318    int vrc = VMR3ReqCall (mpVM, 0 /*idDstCpu*/, &pReq, 0 /* no wait! */,
    33193319                           (PFNRT) Console::changeNetworkAttachment, 7,
    33203320                           this, pszDevice, uInstance, uLun, eAttachmentType,
    33213321                           meAttachmentType, aNetworkAdapter);
    3322     /// @todo (r=dmik) bird, it would be nice to have a special VMR3Req method
    3323     //  for that purpose, that doesn't return useless VERR_TIMEOUT
    3324     if (vrc == VERR_TIMEOUT)
    3325         vrc = VINF_SUCCESS;
    33263322
    33273323    /* leave the lock before waiting for a result (EMT will call us back!) */
    33283324    alock.leave();
    33293325
    3330     if (VBOX_SUCCESS (vrc))
     3326    if (vrc == VERR_TIMEOUT || VBOX_SUCCESS (vrc))
    33313327    {
    33323328        vrc = VMR3ReqWait (pReq, RT_INDEFINITE_WAIT);
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