[NTOSKRNL]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 21 Aug 2015 11:21:14 +0000 (11:21 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 21 Aug 2015 11:21:14 +0000 (11:21 +0000)
Addendum to r68759: don't forget to initialize semaphore.

svn path=/trunk/; revision=68782

reactos/ntoskrnl/fsrtl/fsrtlpc.c

index 63897b8..17f7f70 100644 (file)
@@ -17,6 +17,7 @@
 PERESOURCE FsRtlPagingIoResources;
 ULONG FsRtlPagingIoResourceSelector;
 NTSTATUS NTAPI INIT_FUNCTION FsRtlInitializeWorkerThread(VOID);
+extern KSEMAPHORE FsRtlpUncSemaphore;
 
 static const UCHAR LegalAnsiCharacterArray[] =
 {
@@ -172,6 +173,7 @@ FsRtlInitSystem(VOID)
 
     FsRtlInitializeTunnels();
     FsRtlInitializeLargeMcbs();
+    KeInitializeSemaphore(&FsRtlpUncSemaphore, 1, MAXLONG);
 
     /* Allocate the Resource Buffer */
     FsRtlPagingIoResources = FsRtlAllocatePoolWithTag(NonPagedPool,