VirtualBox

Changeset 44987 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Mar 11, 2013 1:51:31 PM (12 years ago)
Author:
vboxsync
Message:

VBoxGuest-win-pnp.cpp: Use Assert instead of ASSERT; vbgdNtPowerComplete is #ifdef VBOX_STRICT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win-pnp.cpp

    r44986 r44987  
    4949 * @param   pDevObj   Device object.
    5050 * @param   pIrp      Request packet.
    51  * @param   event     Semaphore.
     51 * @param   pEvent    Semaphore.
    5252 * @return   NT status code
    5353 */
     
    390390static NTSTATUS vbgdNtPowerComplete(IN PDEVICE_OBJECT pDevObj, IN PIRP pIrp, IN PVOID pContext)
    391391{
    392     PIO_STACK_LOCATION pIrpSp;
    393     PVBOXGUESTDEVEXT pDevExt = (PVBOXGUESTDEVEXT)pContext;
    394 
    395     ASSERT(pDevExt);
    396     ASSERT(pDevExt->signature == DEVICE_EXTENSION_SIGNATURE);
    397 
    398     pIrpSp = IoGetCurrentIrpStackLocation(pIrp);
     392#ifdef VBOX_STRICT
     393    PVBOXGUESTDEVEXT   pDevExt = (PVBOXGUESTDEVEXT)pContext;
     394    PIO_STACK_LOCATION pIrpSp  = IoGetCurrentIrpStackLocation(pIrp);
     395
     396    Assert(pDevExt);
     397    Assert(pDevExt->signature == DEVICE_EXTENSION_SIGNATURE);
     398
    399399    if (pIrpSp)
    400400    {
    401         ASSERT(pIrpSp->MajorFunction == IRP_MJ_POWER);
     401        Assert(pIrpSp->MajorFunction == IRP_MJ_POWER);
    402402        if (NT_SUCCESS(pIrp->IoStatus.Status))
    403403        {
     
    420420        }
    421421    }
     422#endif
    422423
    423424    return STATUS_SUCCESS;
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