Author: ekohl
Date: Sat Dec 4 15:25:27 2010
New Revision: 49948
URL: http://svn.reactos.org/svn/reactos?rev=49948&view=rev
Log:
[NPFS]
- Fail attempts to connect or disconnect a directory or device.
- Fail attempts to connect or disconnect a pipe by the client.
Modified:
trunk/reactos/drivers/filesystems/npfs/fsctrl.c
Modified: trunk/reactos/drivers/filesystems/npfs/fsctrl.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs/fsctrl.c [iso-8859-1] Sat Dec 4 15:25:27 2010
@@ -95,6 +95,20 @@
DPRINT("NpfsConnectPipe()\n");
+ /* Fail, if the CCB is not a pipe CCB */
+ if (Ccb->Type != CCB_PIPE)
+ {
+ DPRINT1("Not a pipe\n");
+ return STATUS_ILLEGAL_FUNCTION;
+ }
+
+ /* Fail, if the CCB is not a server end CCB */
+ if (Ccb->PipeEnd != FILE_PIPE_SERVER_END)
+ {
+ DPRINT1("Not the server end\n");
+ return STATUS_ILLEGAL_FUNCTION;
+ }
+
if (Ccb->PipeState == FILE_PIPE_CONNECTED_STATE)
{
KeResetEvent(&Ccb->ConnectEvent);
@@ -191,6 +205,20 @@
BOOLEAN Server;
DPRINT("NpfsDisconnectPipe()\n");
+
+ /* Fail, if the CCB is not a pipe CCB */
+ if (Ccb->Type != CCB_PIPE)
+ {
+ DPRINT1("Not a pipe\n");
+ return STATUS_ILLEGAL_FUNCTION;
+ }
+
+ /* Fail, if the CCB is not a server end CCB */
+ if (Ccb->PipeEnd != FILE_PIPE_SERVER_END)
+ {
+ DPRINT1("Not the server end\n");
+ return STATUS_ILLEGAL_FUNCTION;
+ }
Fcb = Ccb->Fcb;
KeLockMutex(&Fcb->CcbListLock);
Author: tkreuzer
Date: Sat Dec 4 12:54:17 2010
New Revision: 49947
URL: http://svn.reactos.org/svn/reactos?rev=49947&view=rev
Log:
[CMAKE]
"don't assign 1 to a BOOL variable"
Modified:
branches/cmake-bringup/config.cmake
Modified: branches/cmake-bringup/config.cmake
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/config.cmake?rev=…
==============================================================================
--- branches/cmake-bringup/config.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/config.cmake [iso-8859-1] Sat Dec 4 12:54:17 2010
@@ -21,29 +21,29 @@
4 = -O2
5 = -O3")
-set(DBG 1 CACHE BOOL
+set(DBG TRUE CACHE BOOL
"Whether to compile for debugging.")
-set(KDBG 1 CACHE BOOL
+set(KDBG TRUE CACHE BOOL
"Whether to compile in the integrated kernel debugger.")
-set(GDB 0 CACHE BOOL
+set(GDB FALSE CACHE BOOL
"Whether to compile for debugging with GDB.
If you don't use GDB, don't enable this.")
-set(_WINKD_ 0 CACHE BOOL
+set(_WINKD_ FALSE CACHE BOOL
"Whether to compile with the KD protocol.")
-set(_ELF_ 0 CACHE BOOL
+set(_ELF_ FALSE CACHE BOOL
"Whether to compile support for ELF files.
Do not enable unless you know what you're doing.")
-set(NSWPAT 0 CACHE BOOL
+set(NSWPAT FALSE CACHE BOOL
"Whether to compile apps/libs with features covered software patents or not.
If you live in a country where software patents are valid/apply, don't
enable this (except they/you purchased a license from the patent owner).
This settings is disabled (0) by default.")
-set(BUILD_MP 1 CACHE BOOL
+set(BUILD_MP TRUE CACHE BOOL
"Whether to compile the multi processor versions for ntoskrnl and hal.")