VirtualBox

Ignore:
Timestamp:
Jul 29, 2016 10:12:45 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109293
Message:

HostDrivers: warnings

File:
1 edited

Legend:

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

    r62715 r62719  
    913913            switch(pSl->Parameters.QueryDeviceRelations.Type)
    914914            {
    915             case BusRelations:
    916             {
    917                 LOG(("BusRelations"));
    918 
    919                 if (pIoStatus->Status == STATUS_SUCCESS)
    920                 {
    921                     PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information;
    922                     LOG(("pRel = %p", pRel));
    923                     if (VALID_PTR(pRel))
     915                case BusRelations:
     916                    LOG(("BusRelations"));
     917
     918                    if (pIoStatus->Status == STATUS_SUCCESS)
    924919                    {
    925                         for (unsigned i=0;i<pRel->Count;i++)
     920                        PDEVICE_RELATIONS pRel = (PDEVICE_RELATIONS)pIoStatus->Information;
     921                        LOG(("pRel = %p", pRel));
     922                        if (VALID_PTR(pRel))
    926923                        {
    927                             if (VBoxUsbFltPdoIsFiltered(pDevObj))
    928                                 LOG(("New PDO %p", pRel->Objects[i]));
     924                            for (unsigned i=0;i<pRel->Count;i++)
     925                            {
     926                                if (VBoxUsbFltPdoIsFiltered(pDevObj))
     927                                    LOG(("New PDO %p", pRel->Objects[i]));
     928                            }
    929929                        }
     930                        else
     931                            LOG(("Invalid pointer %p", pRel));
    930932                    }
    931                     else
    932                         LOG(("Invalid pointer %p", pRel));
    933                 }
    934                 break;
    935             }
    936             case TargetDeviceRelation:
    937                 LOG(("TargetDeviceRelation"));
    938                 break;
    939             case RemovalRelations:
    940                 LOG(("RemovalRelations"));
    941                 break;
    942             case EjectionRelations:
    943                 LOG(("EjectionRelations"));
    944                 break;
     933                    break;
     934                case TargetDeviceRelation:
     935                    LOG(("TargetDeviceRelation"));
     936                    break;
     937                case RemovalRelations:
     938                    LOG(("RemovalRelations"));
     939                    break;
     940                case EjectionRelations:
     941                    LOG(("EjectionRelations"));
     942                    break;
     943                default:
     944                    LOG(("QueryDeviceRelations.Type=%d", pSl->Parameters.QueryDeviceRelations.Type));
    945945            }
    946946            break;
     
    15951595}
    15961596
    1597 static NTSTATUS vboxUsbMonIoctlDispatch(PVBOXUSBMONCTX pContext, ULONG Ctl, PVOID pvBuffer, ULONG cbInBuffer, ULONG cbOutBuffer, ULONG_PTR* pInfo)
     1597static NTSTATUS vboxUsbMonIoctlDispatch(PVBOXUSBMONCTX pContext, ULONG Ctl, PVOID pvBuffer, ULONG cbInBuffer,
     1598                                        ULONG cbOutBuffer, ULONG_PTR *pInfo)
    15981599{
    15991600    NTSTATUS Status = STATUS_SUCCESS;
     
    16591660            {
    16601661                /* we've validated that already */
    1661                 Assert(cbOutBuffer == *pRc);
     1662                Assert(cbOutBuffer == (ULONG)*pRc);
    16621663                *pRc = rc;
    16631664                Info = sizeof (*pRc);
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