https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9462350a92bdde70c4cd56...
commit 9462350a92bdde70c4cd5623b6d9408174ebf1ca Author: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org AuthorDate: Fri Sep 24 00:45:56 2021 +0200 Commit: Hermès Bélusca-Maïto hermes.belusca-maito@reactos.org CommitDate: Sun Sep 26 03:02:58 2021 +0200
[NTOS:RAWFS] LE JOKE! - Commit 7716bddd (r24564) claimed to "actually create the \Device names so that user-mode can even talk to it", yet didn't bother to do that!
Certainly due to copy-pasta error from the original code.
A consequence of this oversight, was that the IoGetDeviceObjectPointer() calls on these device names, in fltmgr!DriverEntry() couldn't work. (See drivers/filters/fltmgr/Interface.c, line 1880 and below.) --- ntoskrnl/io/iomgr/rawfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/io/iomgr/rawfs.c b/ntoskrnl/io/iomgr/rawfs.c index c1dfe0c20c0..5c4d70c75f7 100644 --- a/ntoskrnl/io/iomgr/rawfs.c +++ b/ntoskrnl/io/iomgr/rawfs.c @@ -1202,7 +1202,7 @@ RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject, RtlInitUnicodeString(&DeviceName, L"\Device\RawDisk"); Status = IoCreateDevice(DriverObject, 0, - NULL, + &DeviceName, FILE_DEVICE_DISK_FILE_SYSTEM, 0, FALSE, @@ -1216,7 +1216,7 @@ RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject, RtlInitUnicodeString(&DeviceName, L"\Device\RawCdRom"); Status = IoCreateDevice(DriverObject, 0, - NULL, + &DeviceName, FILE_DEVICE_CD_ROM_FILE_SYSTEM, 0, FALSE, @@ -1231,7 +1231,7 @@ RawFsDriverEntry(IN PDRIVER_OBJECT DriverObject, RtlInitUnicodeString(&DeviceName, L"\Device\RawTape"); Status = IoCreateDevice(DriverObject, 0, - NULL, + &DeviceName, FILE_DEVICE_TAPE_FILE_SYSTEM, 0, FALSE,