VirtualBox

Ignore:
Timestamp:
Aug 26, 2019 4:31:22 PM (5 years ago)
Author:
vboxsync
Message:

VBoxUSBMon: Removed unused function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp

    r79399 r80431  
    306306}
    307307
    308 PVBOXUSBFLT_DEVICE vboxUsbFltDevGet(PDEVICE_OBJECT pPdo)
    309 {
    310     PVBOXUSBFLT_DEVICE pDevice;
    311 
    312     VBOXUSBFLT_LOCK_ACQUIRE();
    313     pDevice = vboxUsbFltDevGetLocked(pPdo);
    314     /*
    315      * Prevent a host crash when vboxUsbFltDevGetLocked fails to locate the matching PDO
    316      * in g_VBoxUsbFltGlobals.DeviceList (see @bugref{6509}).
    317      */
    318     if (pDevice == NULL)
    319     {
    320         WARN(("failed to get device for PDO(0x%p)", pPdo));
    321     }
    322     else if (pDevice->enmState > VBOXUSBFLT_DEVSTATE_ADDED)
    323     {
    324         vboxUsbFltDevRetain(pDevice);
    325         LOG(("found device (0x%p), state(%d) for PDO(0x%p)", pDevice, pDevice->enmState, pPdo));
    326     }
    327     else
    328     {
    329         LOG(("found replugging device (0x%p), state(%d) for PDO(0x%p)", pDevice, pDevice->enmState, pPdo));
    330         pDevice = NULL;
    331     }
    332     VBOXUSBFLT_LOCK_RELEASE();
    333 
    334     return pDevice;
    335 }
    336 
    337308static NTSTATUS vboxUsbFltPdoReplug(PDEVICE_OBJECT pDo)
    338309{
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