https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a43fb5e054b51a59a6cb5f0cd81d6535460d08b4
commit a43fb5e054b51a59a6cb5f0cd81d6535460d08b4 Author: Pierre Schweitzer <pie...@reactos.org> AuthorDate: Thu Oct 4 19:19:24 2018 +0200 Commit: Pierre Schweitzer <pie...@reactos.org> CommitDate: Thu Oct 4 19:30:38 2018 +0200 [NTOSKRNL] Implement IoGetFileObjectFilterContext() --- ntoskrnl/include/internal/io.h | 1 + ntoskrnl/io/iomgr/file.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ntoskrnl/include/internal/io.h b/ntoskrnl/include/internal/io.h index 9928cbaab4..8f0398b4ad 100644 --- a/ntoskrnl/include/internal/io.h +++ b/ntoskrnl/include/internal/io.h @@ -96,6 +96,7 @@ typedef struct _FILE_OBJECT_EXTENSION { PDEVICE_OBJECT TopDeviceObjectHint; + PVOID FilterContext; } FILE_OBJECT_EXTENSION, *PFILE_OBJECT_EXTENSION; diff --git a/ntoskrnl/io/iomgr/file.c b/ntoskrnl/io/iomgr/file.c index 68a801fd4f..0a5e0b1d1a 100644 --- a/ntoskrnl/io/iomgr/file.c +++ b/ntoskrnl/io/iomgr/file.c @@ -2443,9 +2443,10 @@ IoGetFileObjectFilterContext(IN PFILE_OBJECT FileObject) { if (FileObject->Flags & FO_FILE_OBJECT_HAS_EXTENSION) { - UNIMPLEMENTED; - /* FIXME: return NULL for the moment ~ */ - return NULL; + PFILE_OBJECT_EXTENSION FileObjectExtension; + + FileObjectExtension = FileObject->FileObjectExtension; + return FileObjectExtension->FilterContext; } return NULL;