From 78e5caaec2ae983794f3ab01ab234a1ef7d1882d Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Wed, 11 Oct 2017 08:38:26 +0200 Subject: [PATCH] [RDBSS] Fix broken cast when comparing DFS magic values CID 1419139 --- sdk/lib/drivers/rdbsslib/rdbss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/drivers/rdbsslib/rdbss.c b/sdk/lib/drivers/rdbsslib/rdbss.c index 0163a2425da..4591f3bd72a 100644 --- a/sdk/lib/drivers/rdbsslib/rdbss.c +++ b/sdk/lib/drivers/rdbsslib/rdbss.c @@ -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); }