mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 07:56:59 +00:00
Fix serial devices detection
Thanks at Maciej Bialas (bjauy at o2.pl) for testing svn path=/trunk/; revision=38512
This commit is contained in:
parent
1fa9bb9b8e
commit
7d3efdbdb0
3 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ SermouseDetectLegacyDevice(
|
||||||
/* Open port */
|
/* Open port */
|
||||||
Status = ObOpenObjectByPointer(
|
Status = ObOpenObjectByPointer(
|
||||||
LowerDevice,
|
LowerDevice,
|
||||||
OBJ_EXCLUSIVE | OBJ_KERNEL_HANDLE,
|
OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
@ -467,7 +467,7 @@ SerenumDetectLegacyDevice(
|
||||||
/* Open port */
|
/* Open port */
|
||||||
Status = ObOpenObjectByPointer(
|
Status = ObOpenObjectByPointer(
|
||||||
LowerDevice,
|
LowerDevice,
|
||||||
OBJ_EXCLUSIVE | OBJ_KERNEL_HANDLE,
|
OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
@ -225,8 +225,8 @@ SerialRead(
|
||||||
if (WorkItem)
|
if (WorkItem)
|
||||||
{
|
{
|
||||||
WorkItemData->IoWorkItem = WorkItem;
|
WorkItemData->IoWorkItem = WorkItem;
|
||||||
IoQueueWorkItem(WorkItem, SerialReadWorkItem, DelayedWorkQueue, WorkItemData);
|
|
||||||
IoMarkIrpPending(Irp);
|
IoMarkIrpPending(Irp);
|
||||||
|
IoQueueWorkItem(WorkItem, SerialReadWorkItem, DelayedWorkQueue, WorkItemData);
|
||||||
return STATUS_PENDING;
|
return STATUS_PENDING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue