[ros-diffs] [navaraf] 15650: Fix ASSERT conditions.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Sun May 29 09:30:01 CEST 2005


Fix ASSERT conditions.
Modified: trunk/reactos/drivers/usb/usbport/usbport.c
  _____  

Modified: trunk/reactos/drivers/usb/usbport/usbport.c
--- trunk/reactos/drivers/usb/usbport/usbport.c	2005-05-29 01:04:44 UTC
(rev 15649)
+++ trunk/reactos/drivers/usb/usbport/usbport.c	2005-05-29 07:29:59 UTC
(rev 15650)
@@ -48,7 +48,7 @@

     PUSB_CONTROLLER_INTERFACE Interface)
 {
 	DPRINT1("USBPORT_RegisterUSBPortDriver\n");
-//	ASSERT(KeGetCurrentIRQL() < DISPATCH_LEVEL);
+	ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
 
 	return STATUS_SUCCESS;
 }
@@ -65,8 +65,8 @@
 USBPORT_AllocateUsbControllerInterface(OUT PUSB_CONTROLLER_INTERFACE
*pControllerInterface)
 {
 	DPRINT1("USBPORT_AllocateUsbControllerInterface\n");
-//	ASSERT(KeGetCurrentIRQL() < DISPATCH_LEVEL);
-//	ASSERT(0 != ControllerObject);
+	ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
+	ASSERT(0 != pControllerInterface);
 
 	*pControllerInterface =
(PUSB_CONTROLLER_INTERFACE)ExAllocatePoolWithTag(PagedPool,
sizeof(USB_CONTROLLER_INTERFACE),USB_CONTROLLER_INTERFACE_TAG);
 	RtlZeroMemory(*pControllerInterface,
sizeof(USB_CONTROLLER_INTERFACE));
@@ -78,7 +78,7 @@
 USBPORT_FreeUsbControllerInterface(IN PUSB_CONTROLLER_INTERFACE
ControllerInterface)
 {
 	DPRINT1("USBPORT_FreeUsbControllerInterface\n");
-//	ASSERT(KeGetCurrentIRQL() < DISPATCH_LEVEL);	
+	ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);	
 
 	ExFreePool(ControllerInterface);
 	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050529/773ae86d/attachment.html


More information about the Ros-diffs mailing list