VirtualBox

Ignore:
Timestamp:
Sep 15, 2009 7:03:49 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52320
Message:

VBoxBFE: VMR3ReqCall w/ RT_INDEFINITE_WAIT -> VMR3ReqCallWait

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.cpp

    r19300 r23021  
    243243
    244244    LogFlowMember (("Console::AttachUSBDevice: Proxying USB device '%s' %RTuuid...\n", Address.c_str(), &Uuid));
    245     PVMREQ pReq;
    246     vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT,
     245    vrc = VMR3ReqCallWait (mpVM, VMCPUID_ANY,
    247246                       (PFNRT)pRhConfig->pfnCreateProxyDevice,
    248247                       5, pRhConfig, &Uuid, fRemote,
    249248                       Address.c_str(), pvRemote);
    250     if (RT_SUCCESS (vrc))
    251         vrc = pReq->iStatus;
    252     VMR3ReqFree (pReq);
    253249    if (RT_SUCCESS (vrc))
    254250        hostDevice->setCaptured();
     
    302298            RTUUID Uuid = aDevice->id();
    303299            LogFlowMember (("Console::DetachUSBDevice: Detaching USB proxy device %RTuuid...\n", &Uuid));
    304             PVMREQ pReq;
    305             vrc = VMR3ReqCall (mpVM, VMCPUID_ANY, &pReq, RT_INDEFINITE_WAIT, (PFNRT)pRhConfig->pfnDestroyProxyDevice,
     300            vrc = VMR3ReqCallWait (mpVM, VMCPUID_ANY, (PFNRT)pRhConfig->pfnDestroyProxyDevice,
    306301                               2, pRhConfig, &Uuid);
    307             if (RT_SUCCESS (vrc))
    308                 vrc = pReq->iStatus;
    309             VMR3ReqFree (pReq);
    310302        }
    311303    }
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