Author: hpoussin
Date: Sun Dec 31 18:37:36 2006
New Revision: 25253
URL:
http://svn.reactos.org/svn/reactos?rev=25253&view=rev
Log:
... also check the return of IoCreateSymbolicLink
Modified:
trunk/reactos/drivers/base/blue/blue.c
Modified: trunk/reactos/drivers/base/blue/blue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/base/blue/blue.c?r…
==============================================================================
--- trunk/reactos/drivers/base/blue/blue.c (original)
+++ trunk/reactos/drivers/base/blue/blue.c Sun Dec 31 18:37:36 2006
@@ -817,18 +817,21 @@
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 */