[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.)
This commit is contained in:
Hermès Bélusca-Maïto 2021-09-24 00:45:56 +02:00
parent 5ccd45ea58
commit 9462350a92
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

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