mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +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;
|
ServerCcb->OtherSide = ClientCcb;
|
||||||
ClientCcb->PipeState = FILE_PIPE_CONNECTED_STATE;
|
ClientCcb->PipeState = FILE_PIPE_CONNECTED_STATE;
|
||||||
ServerCcb->PipeState = FILE_PIPE_CONNECTED_STATE;
|
ServerCcb->PipeState = FILE_PIPE_CONNECTED_STATE;
|
||||||
|
KeSetEvent(&ServerCcb->ConnectEvent, IO_NO_INCREMENT, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
KeUnlockMutex(&Fcb->CcbListLock);
|
KeUnlockMutex(&Fcb->CcbListLock);
|
||||||
|
|
|
@ -157,6 +157,19 @@ NpfsConnectPipe(PIRP Irp,
|
||||||
|
|
||||||
KeUnlockMutex(&Fcb->CcbListLock);
|
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);
|
DPRINT("NpfsConnectPipe() done (Status %lx)\n", Status);
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue