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