VirtualBox

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


Ignore:
Timestamp:
Jun 1, 2011 11:30:25 AM (14 years ago)
Author:
vboxsync
Message:

VBoxGuest/win: IoSkip & CallDriver for PNP_QUERY IRPS

File:
1 edited

Legend:

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

    r37286 r37288  
    241241                pIrp->IoStatus.Status = STATUS_SUCCESS;
    242242
    243                 rc = vboxguestwinSendIrpSynchronously(pDevExt->win.s.pNextLowerDriver, pIrp, TRUE);
    244 
    245                 /* We MUST do IRP completion here!!! because vboxguestwinSendIrpSynchronously
    246                  * has done STATUS_MORE_PROCESSING_REQUIRED in its IRP completion */
     243                IoSkipCurrentIrpStackLocation(pIrp);
     244
     245                rc = IoCallDriver(pDevExt->win.s.pNextLowerDriver, pIrp);
     246                Log(("VBoxGuest::vboxguestwinGuestPnp: QUERY_REMOVE_DEVICE: Next lower driver replied rc = 0x%x\n", rc));
     247
     248                return rc;
    247249            }
    248250
     
    331333                pIrp->IoStatus.Status = STATUS_SUCCESS;
    332334
    333                 rc = vboxguestwinSendIrpSynchronously(pDevExt->win.s.pNextLowerDriver, pIrp, TRUE);
    334 
    335                 /* We MUST do IRP completion here!!! because vboxguestwinSendIrpSynchronously
    336                  * has done STATUS_MORE_PROCESSING_REQUIRED in its IRP completion */
     335                IoSkipCurrentIrpStackLocation(pIrp);
     336
     337                rc = IoCallDriver(pDevExt->win.s.pNextLowerDriver, pIrp);
     338                Log(("VBoxGuest::vboxguestwinGuestPnp: QUERY_STOP_DEVICE: Next lower driver replied rc = 0x%x\n", rc));
     339
     340                return rc;
    337341            }
    338342
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