[RDBSS] Fix broken cast when comparing DFS magic values
authorPierre Schweitzer <pierre@reactos.org>
Wed, 11 Oct 2017 06:38:26 +0000 (08:38 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Wed, 11 Oct 2017 06:38:26 +0000 (08:38 +0200)
CID 1419139

sdk/lib/drivers/rdbsslib/rdbss.c

index 0163a24..4591f3b 100644 (file)
@@ -4946,7 +4946,7 @@ RxCreateFromNetRoot(
         if (Context->pFobx != NULL)
         {
             /* If so, reflect this in the FOBX */
-            if (NodeType(FileObject->FsContext2) == DFS_OPEN_CONTEXT)
+            if (FileObject->FsContext2 == UIntToPtr(DFS_OPEN_CONTEXT))
             {
                 SetFlag(Context->pFobx->Flags, FOBX_FLAG_DFS_OPEN);
             }