mirror of
https://github.com/reactos/reactos.git
synced 2024-07-10 22:55:05 +00:00
... also check the return of IoCreateSymbolicLink
svn path=/trunk/; revision=25253
This commit is contained in:
parent
e415b04c90
commit
adcf186642
|
@ -817,18 +817,21 @@ DriverEntry (PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
|
||||||
sizeof(DEVICE_EXTENSION),
|
sizeof(DEVICE_EXTENSION),
|
||||||
&DeviceName,
|
&DeviceName,
|
||||||
FILE_DEVICE_SCREEN,
|
FILE_DEVICE_SCREEN,
|
||||||
0,
|
FILE_DEVICE_SECURE_OPEN,
|
||||||
TRUE,
|
TRUE,
|
||||||
&DeviceObject);
|
&DeviceObject);
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
IoCreateSymbolicLink (&SymlinkName, &DeviceName);
|
Status = IoCreateSymbolicLink (&SymlinkName, &DeviceName);
|
||||||
|
if (NT_SUCCESS(Status))
|
||||||
return (STATUS_SUCCESS);
|
DeviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
|
||||||
|
else
|
||||||
|
IoDeleteDevice (DeviceObject);
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue