Changeset 44987 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 11, 2013 1:51:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win-pnp.cpp
r44986 r44987 49 49 * @param pDevObj Device object. 50 50 * @param pIrp Request packet. 51 * @param eventSemaphore.51 * @param pEvent Semaphore. 52 52 * @return NT status code 53 53 */ … … 390 390 static NTSTATUS vbgdNtPowerComplete(IN PDEVICE_OBJECT pDevObj, IN PIRP pIrp, IN PVOID pContext) 391 391 { 392 PIO_STACK_LOCATION pIrpSp; 393 PVBOXGUESTDEVEXT pDevExt = (PVBOXGUESTDEVEXT)pContext;394 395 ASSERT(pDevExt); 396 A SSERT(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 399 399 if (pIrpSp) 400 400 { 401 A SSERT(pIrpSp->MajorFunction == IRP_MJ_POWER);401 Assert(pIrpSp->MajorFunction == IRP_MJ_POWER); 402 402 if (NT_SUCCESS(pIrp->IoStatus.Status)) 403 403 { … … 420 420 } 421 421 } 422 #endif 422 423 423 424 return STATUS_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.