Do not wait for explorer startup. Hack.

svn path=/trunk/; revision=26219
This commit is contained in:
Dmitry Gorbachev 2007-03-31 11:52:24 +00:00
parent 151cc9133b
commit c08f45390a
2 changed files with 14 additions and 0 deletions

View file

@ -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);

View file

@ -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;