[NTOSKRNL] Implement IoGetFileObjectFilterContext()

This commit is contained in:
Pierre Schweitzer 2018-10-04 19:19:24 +02:00
parent 043faab089
commit a43fb5e054
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 5 additions and 3 deletions

View file

@ -96,6 +96,7 @@
typedef struct _FILE_OBJECT_EXTENSION
{
PDEVICE_OBJECT TopDeviceObjectHint;
PVOID FilterContext;
} FILE_OBJECT_EXTENSION, *PFILE_OBJECT_EXTENSION;

View file

@ -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;