VirtualBox

Ignore:
Timestamp:
Jul 29, 2016 3:58:55 PM (8 years ago)
Author:
vboxsync
Message:

VBoxUsbDev.cpp: Unreadable Status mess. (Hint, this is C/C++ not assembly.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbDev.cpp

    r62697 r62698  
    197197{
    198198    PVBOXUSBDEV_EXT pDevExt = (PVBOXUSBDEV_EXT)pDeviceObject->DeviceExtension;
    199     NTSTATUS Status = STATUS_INVALID_HANDLE;
    200199    if (vboxUsbDdiStateRetainIfStarted(pDevExt))
    201     {
    202200        return vboxUsbRtDispatch(pDevExt, pIrp);
    203     }
    204     else
    205     {
    206         Status = STATUS_INVALID_DEVICE_STATE;
    207     }
    208 
    209     Status = VBoxDrvToolIoComplete(pIrp, Status, 0);
    210     return Status;
     201    return VBoxDrvToolIoComplete(pIrp, STATUS_INVALID_DEVICE_STATE, 0);
    211202}
    212203
     
    214205{
    215206    RT_NOREF1(pDeviceObject);
    216     NTSTATUS Status = STATUS_SUCCESS;
    217     Status = VBoxDrvToolIoComplete(pIrp, Status, 0);
    218     return Status;
     207    return VBoxDrvToolIoComplete(pIrp, STATUS_SUCCESS, 0);
    219208}
    220209
     
    228217    }
    229218
    230     NTSTATUS Status = STATUS_ACCESS_DENIED;
    231     Status = VBoxDrvToolIoComplete(pIrp, Status, 0);
     219    NTSTATUS Status = VBoxDrvToolIoComplete(pIrp, STATUS_ACCESS_DENIED, 0);
    232220
    233221    vboxUsbDdiStateRelease(pDevExt);
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