Author: hpoussin
Date: Fri Jan 2 16:12:48 2009
New Revision: 38512
URL:
http://svn.reactos.org/svn/reactos?rev=38512&view=rev
Log:
Fix serial devices detection
Thanks at Maciej Bialas (bjauy at o2.pl) for testing
Modified:
trunk/reactos/drivers/input/sermouse/detect.c
trunk/reactos/drivers/serial/serenum/detect.c
trunk/reactos/drivers/serial/serial/rw.c
Modified: trunk/reactos/drivers/input/sermouse/detect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/sermouse/det…
==============================================================================
--- trunk/reactos/drivers/input/sermouse/detect.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/sermouse/detect.c [iso-8859-1] Fri Jan 2 16:12:48 2009
@@ -132,7 +132,7 @@
/* Open port */
Status = ObOpenObjectByPointer(
LowerDevice,
- OBJ_EXCLUSIVE | OBJ_KERNEL_HANDLE,
+ OBJ_KERNEL_HANDLE,
NULL,
0,
NULL,
Modified: trunk/reactos/drivers/serial/serenum/detect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serenum/det…
==============================================================================
--- trunk/reactos/drivers/serial/serenum/detect.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/serial/serenum/detect.c [iso-8859-1] Fri Jan 2 16:12:48 2009
@@ -467,7 +467,7 @@
/* Open port */
Status = ObOpenObjectByPointer(
LowerDevice,
- OBJ_EXCLUSIVE | OBJ_KERNEL_HANDLE,
+ OBJ_KERNEL_HANDLE,
NULL,
0,
NULL,
Modified: trunk/reactos/drivers/serial/serial/rw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serial/rw.c…
==============================================================================
--- trunk/reactos/drivers/serial/serial/rw.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/serial/serial/rw.c [iso-8859-1] Fri Jan 2 16:12:48 2009
@@ -225,8 +225,8 @@
if (WorkItem)
{
WorkItemData->IoWorkItem = WorkItem;
+ IoMarkIrpPending(Irp);
IoQueueWorkItem(WorkItem, SerialReadWorkItem, DelayedWorkQueue, WorkItemData);
- IoMarkIrpPending(Irp);
return STATUS_PENDING;
}