Don't pass a NULL pointer as offset when creating a IRP_MJ_READ irp.
Modified: trunk/reactos/drivers/bus/serenum/detect.c
_____
Modified: trunk/reactos/drivers/bus/serenum/detect.c
--- trunk/reactos/drivers/bus/serenum/detect.c 2005-04-28 21:17:07 UTC
(rev 14850)
+++ trunk/reactos/drivers/bus/serenum/detect.c 2005-04-28 21:56:36 UTC
(rev 14851)
@@ -71,14 +71,16 @@
PIRP Irp;
IO_STATUS_BLOCK ioStatus;
KEVENT event;
+ LARGE_INTEGER zero;
NTSTATUS Status;
KeInitializeEvent(&event, NotificationEvent, FALSE);
+ zero.QuadPart = 0;
Irp = IoBuildSynchronousFsdRequest(
IRP_MJ_READ,
LowerDevice,
Buffer, BufferSize,
- 0,
+ &zero,
&event,
&ioStatus);
if (!Irp)
@@ -422,6 +424,10 @@
UNICODE_STRING CompatibleIds;
NTSTATUS Status;
+ DPRINT("Serenum: SerenumDetectLegacyDevice(DeviceObject %p,
LowerDevice %p)\n",
+ DeviceObject,
+ LowerDevice);
+
RtlZeroMemory(Buffer, sizeof(Buffer));
/* Reset UART */
Show replies by date