mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:33:10 +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
|
@ -1287,9 +1287,12 @@ IoSecondStageCompletion(PKAPC Apc,
|
||||||
{
|
{
|
||||||
/* Dereference the Event if this is an ASYNC IRP */
|
/* Dereference the Event if this is an ASYNC IRP */
|
||||||
if (!Irp->Flags & IRP_SYNCHRONOUS_API)
|
if (!Irp->Flags & IRP_SYNCHRONOUS_API)
|
||||||
|
{
|
||||||
|
if (Irp->UserEvent != &FileObject->Event)
|
||||||
{
|
{
|
||||||
ObDereferenceObject(Irp->UserEvent);
|
ObDereferenceObject(Irp->UserEvent);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If the File Object is SYNC, then we need to signal its event too */
|
/* If the File Object is SYNC, then we need to signal its event too */
|
||||||
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
||||||
|
@ -1381,9 +1384,12 @@ IoSecondStageCompletion(PKAPC Apc,
|
||||||
|
|
||||||
/* Dereference the Event if it's an ASYNC IRP on a File Object */
|
/* Dereference the Event if it's an ASYNC IRP on a File Object */
|
||||||
if (Irp->UserEvent && !(Irp->Flags & IRP_SYNCHRONOUS_API) && FileObject)
|
if (Irp->UserEvent && !(Irp->Flags & IRP_SYNCHRONOUS_API) && FileObject)
|
||||||
|
{
|
||||||
|
if (Irp->UserEvent != &FileObject->Event)
|
||||||
{
|
{
|
||||||
ObDereferenceObject(Irp->UserEvent);
|
ObDereferenceObject(Irp->UserEvent);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Dereference the File Object */
|
/* Dereference the File Object */
|
||||||
if (FileObject) ObDereferenceObject(FileObject);
|
if (FileObject) ObDereferenceObject(FileObject);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue