mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[VFATFS] Use device name FatX, to not collide with fastfat.sys
CORE-16373
This commit is contained in:
parent
14c3936251
commit
15ea997774
1 changed files with 1 additions and 15 deletions
|
@ -52,7 +52,7 @@ DriverEntry(
|
||||||
IN PUNICODE_STRING RegistryPath)
|
IN PUNICODE_STRING RegistryPath)
|
||||||
{
|
{
|
||||||
PDEVICE_OBJECT DeviceObject;
|
PDEVICE_OBJECT DeviceObject;
|
||||||
UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\Fat");
|
UNICODE_STRING DeviceName = RTL_CONSTANT_STRING(L"\\FatX");
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
UNREFERENCED_PARAMETER(RegistryPath);
|
UNREFERENCED_PARAMETER(RegistryPath);
|
||||||
|
@ -64,20 +64,6 @@ DriverEntry(
|
||||||
0,
|
0,
|
||||||
FALSE,
|
FALSE,
|
||||||
&DeviceObject);
|
&DeviceObject);
|
||||||
if (Status == STATUS_OBJECT_NAME_EXISTS ||
|
|
||||||
Status == STATUS_OBJECT_NAME_COLLISION)
|
|
||||||
{
|
|
||||||
/* Try an other name, if 'Fat' is already in use. 'Fat' is also used by fastfat.sys on W2K */
|
|
||||||
RtlInitUnicodeString(&DeviceName, L"\\RosFat");
|
|
||||||
Status = IoCreateDevice(DriverObject,
|
|
||||||
sizeof(VFAT_GLOBAL_DATA),
|
|
||||||
&DeviceName,
|
|
||||||
FILE_DEVICE_DISK_FILE_SYSTEM,
|
|
||||||
0,
|
|
||||||
FALSE,
|
|
||||||
&DeviceObject);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in a new issue