mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:35:49 +00:00
Add hack for ROS's weird behavior. Will investigate but this lets you boot for now
svn path=/trunk/; revision=14884
This commit is contained in:
parent
d7ea77e414
commit
9ff89d4fd7
1 changed files with 8 additions and 2 deletions
|
@ -1288,7 +1288,10 @@ IoSecondStageCompletion(PKAPC Apc,
|
|||
/* Dereference the Event if this is an ASYNC IRP */
|
||||
if (!Irp->Flags & IRP_SYNCHRONOUS_API)
|
||||
{
|
||||
ObDereferenceObject(Irp->UserEvent);
|
||||
if (Irp->UserEvent != &FileObject->Event)
|
||||
{
|
||||
ObDereferenceObject(Irp->UserEvent);
|
||||
}
|
||||
}
|
||||
|
||||
/* If the File Object is SYNC, then we need to signal its event too */
|
||||
|
@ -1382,7 +1385,10 @@ IoSecondStageCompletion(PKAPC Apc,
|
|||
/* Dereference the Event if it's an ASYNC IRP on a File Object */
|
||||
if (Irp->UserEvent && !(Irp->Flags & IRP_SYNCHRONOUS_API) && FileObject)
|
||||
{
|
||||
ObDereferenceObject(Irp->UserEvent);
|
||||
if (Irp->UserEvent != &FileObject->Event)
|
||||
{
|
||||
ObDereferenceObject(Irp->UserEvent);
|
||||
}
|
||||
}
|
||||
|
||||
/* Dereference the File Object */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue