mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Do not wait for explorer startup. Hack.
svn path=/trunk/; revision=26219
This commit is contained in:
parent
151cc9133b
commit
c08f45390a
2 changed files with 14 additions and 0 deletions
|
@ -290,6 +290,7 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
|
|||
ServerCcb->OtherSide = ClientCcb;
|
||||
ClientCcb->PipeState = FILE_PIPE_CONNECTED_STATE;
|
||||
ServerCcb->PipeState = FILE_PIPE_CONNECTED_STATE;
|
||||
KeSetEvent(&ServerCcb->ConnectEvent, IO_NO_INCREMENT, FALSE);
|
||||
}
|
||||
|
||||
KeUnlockMutex(&Fcb->CcbListLock);
|
||||
|
|
|
@ -157,6 +157,19 @@ NpfsConnectPipe(PIRP Irp,
|
|||
|
||||
KeUnlockMutex(&Fcb->CcbListLock);
|
||||
|
||||
{
|
||||
PIO_STACK_LOCATION IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
PFILE_OBJECT FileObject = IoStack->FileObject;
|
||||
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
||||
{
|
||||
KeWaitForSingleObject(&Ccb->ConnectEvent,
|
||||
UserRequest,
|
||||
KernelMode,
|
||||
FALSE,
|
||||
NULL);
|
||||
}
|
||||
}
|
||||
|
||||
DPRINT("NpfsConnectPipe() done (Status %lx)\n", Status);
|
||||
|
||||
return Status;
|
||||
|
|
Loading…
Reference in a new issue