Add semi-implementation of AttachDeviceToDeviceStackSafe
Modified: trunk/reactos/ntoskrnl/io/device.c

Modified: trunk/reactos/ntoskrnl/io/device.c
--- trunk/reactos/ntoskrnl/io/device.c	2005-03-11 18:34:44 UTC (rev 13934)
+++ trunk/reactos/ntoskrnl/io/device.c	2005-03-11 18:46:44 UTC (rev 13935)
@@ -126,7 +126,7 @@
       ObjectBody, Parent, RemainingPath);
    
    if (RemainingPath != NULL && wcschr(RemainingPath + 1, '\\') != NULL)
-      return STATUS_UNSUCCESSFUL;
+      return STATUS_OBJECT_PATH_NOT_FOUND;
    
    return STATUS_SUCCESS;
 }
@@ -168,8 +168,11 @@
     OUT PDEVICE_OBJECT *AttachedToDeviceObject
     )
 {
-	UNIMPLEMENTED;
-	return STATUS_NOT_IMPLEMENTED;
+   /* FIXME: IoAttachDeviceToDeviceStackSafe must not call
+    * IoAttachDeviceToDeviceStack, but the other way around! */
+   DPRINT1("IoAttachDeviceToDeviceStackSafe() badly implemented!\n");
+   *AttachedToDeviceObject = IoAttachDeviceToDeviceStack(SourceDevice, TargetDevice);
+   return STATUS_SUCCESS;
 }
 
 /*