Author: pschweitzer
Date: Sat Mar 18 14:03:45 2017
New Revision: 74189
URL:
http://svn.reactos.org/svn/reactos?rev=74189&view=rev
Log:
[MUP]
Properly define magic values for CCB and DFS
Modified:
trunk/reactos/drivers/filesystems/mup/mup.c
trunk/reactos/drivers/filesystems/mup/mup.h
Modified: trunk/reactos/drivers/filesystems/mup/mup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/mu…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/mup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/mup.c [iso-8859-1] Sat Mar 18 14:03:45 2017
@@ -1804,7 +1804,7 @@
MasterQueryContext->LatestProvider = QueryContext->UncProvider;
MasterQueryContext->LatestStatus = Status;
- if (MasterQueryContext->FileObject->FsContext2 != DFS_MAGIC_CCB)
+ if (MasterQueryContext->FileObject->FsContext2 !=
(PVOID)DFS_DOWNLEVEL_OPEN_CONTEXT)
{
/* Allocate a buffer for the prefix */
AcceptedPrefix = ExAllocatePoolWithTag(PagedPool,
QueryResponse->LengthAccepted, TAG_MUP);
@@ -2045,7 +2045,7 @@
}
/* Ok, at that point, that's a regular MUP opening (if no DFS) */
- if (!MupEnableDfs || FileObject->FsContext2 == DFS_MAGIC_CCB)
+ if (!MupEnableDfs || FileObject->FsContext2 == (PVOID)DFS_DOWNLEVEL_OPEN_CONTEXT)
{
/* We won't complete immediately */
IoMarkIrpPending(Irp);
Modified: trunk/reactos/drivers/filesystems/mup/mup.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/mu…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/mup.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/mup.h [iso-8859-1] Sat Mar 18 14:03:45 2017
@@ -17,8 +17,12 @@
#define TAG_MUP ' puM'
-#define DFS_MAGIC_CCB (PVOID)0x11444653
#define FILE_SIMPLE_RIGHTS_MASK (FILE_ALL_ACCESS & ~STANDARD_RIGHTS_REQUIRED &~
SYNCHRONIZE)
+
+#define DFS_OPEN_CONTEXT 0xFF444653
+#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653
+#define DFS_CSCAGENT_NAME_CONTEXT 0xAAAAAAAA
+#define DFS_USER_NAME_CONTEXT 0xBBBBBBBB
#define NODE_TYPE_VCB 0x1
#define NODE_TYPE_UNC 0x2