Author: dgorbachev
Date: Sat Mar 31 15:52:24 2007
New Revision: 26219
URL:
http://svn.reactos.org/svn/reactos?rev=26219&view=rev
Log:
Do not wait for explorer startup. Hack.
Modified:
trunk/reactos/drivers/filesystems/np/create.c
trunk/reactos/drivers/filesystems/np/fsctrl.c
Modified: trunk/reactos/drivers/filesystems/np/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/np/cre…
==============================================================================
--- trunk/reactos/drivers/filesystems/np/create.c (original)
+++ trunk/reactos/drivers/filesystems/np/create.c Sat Mar 31 15:52:24 2007
@@ -290,6 +290,7 @@
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);
Modified: trunk/reactos/drivers/filesystems/np/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/np/fsc…
==============================================================================
--- trunk/reactos/drivers/filesystems/np/fsctrl.c (original)
+++ trunk/reactos/drivers/filesystems/np/fsctrl.c Sat Mar 31 15:52:24 2007
@@ -156,6 +156,19 @@
Status = NpfsAddListeningServerInstance(Irp, Ccb);
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);