mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fix ASSERT conditions.
svn path=/trunk/; revision=15650
This commit is contained in:
parent
d593712681
commit
5c43578bfd
1 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ USBPORT_RegisterUSBPortDriver(PDRIVER_OBJECT DriverObject, DWORD Unknown1,
|
||||||
PUSB_CONTROLLER_INTERFACE Interface)
|
PUSB_CONTROLLER_INTERFACE Interface)
|
||||||
{
|
{
|
||||||
DPRINT1("USBPORT_RegisterUSBPortDriver\n");
|
DPRINT1("USBPORT_RegisterUSBPortDriver\n");
|
||||||
// ASSERT(KeGetCurrentIRQL() < DISPATCH_LEVEL);
|
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -65,8 +65,8 @@ NTSTATUS STDCALL
|
||||||
USBPORT_AllocateUsbControllerInterface(OUT PUSB_CONTROLLER_INTERFACE *pControllerInterface)
|
USBPORT_AllocateUsbControllerInterface(OUT PUSB_CONTROLLER_INTERFACE *pControllerInterface)
|
||||||
{
|
{
|
||||||
DPRINT1("USBPORT_AllocateUsbControllerInterface\n");
|
DPRINT1("USBPORT_AllocateUsbControllerInterface\n");
|
||||||
// ASSERT(KeGetCurrentIRQL() < DISPATCH_LEVEL);
|
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
|
||||||
// ASSERT(0 != ControllerObject);
|
ASSERT(0 != pControllerInterface);
|
||||||
|
|
||||||
*pControllerInterface = (PUSB_CONTROLLER_INTERFACE)ExAllocatePoolWithTag(PagedPool, sizeof(USB_CONTROLLER_INTERFACE),USB_CONTROLLER_INTERFACE_TAG);
|
*pControllerInterface = (PUSB_CONTROLLER_INTERFACE)ExAllocatePoolWithTag(PagedPool, sizeof(USB_CONTROLLER_INTERFACE),USB_CONTROLLER_INTERFACE_TAG);
|
||||||
RtlZeroMemory(*pControllerInterface, sizeof(USB_CONTROLLER_INTERFACE));
|
RtlZeroMemory(*pControllerInterface, sizeof(USB_CONTROLLER_INTERFACE));
|
||||||
|
@ -78,7 +78,7 @@ NTSTATUS STDCALL
|
||||||
USBPORT_FreeUsbControllerInterface(IN PUSB_CONTROLLER_INTERFACE ControllerInterface)
|
USBPORT_FreeUsbControllerInterface(IN PUSB_CONTROLLER_INTERFACE ControllerInterface)
|
||||||
{
|
{
|
||||||
DPRINT1("USBPORT_FreeUsbControllerInterface\n");
|
DPRINT1("USBPORT_FreeUsbControllerInterface\n");
|
||||||
// ASSERT(KeGetCurrentIRQL() < DISPATCH_LEVEL);
|
ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
|
||||||
|
|
||||||
ExFreePool(ControllerInterface);
|
ExFreePool(ControllerInterface);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue