[ADVAPI32]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 10 Sep 2013 21:38:15 +0000 (21:38 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 10 Sep 2013 21:38:15 +0000 (21:38 +0000)
Use a correct control pipe sharing policy.

svn path=/trunk/; revision=60015

reactos/dll/win32/advapi32/service/sctrl.c

index 878811b..6893c14 100644 (file)
@@ -248,7 +248,7 @@ ScConnectControlPipe(HANDLE *hPipe)
 
     *hPipe = CreateFileW(NtControlPipeName,
                          GENERIC_READ | GENERIC_WRITE,
-                         0,
+                         FILE_SHARE_READ | FILE_SHARE_WRITE,
                          NULL,
                          OPEN_EXISTING,
                          FILE_ATTRIBUTE_NORMAL,