- Store the device object we're attached to in the device extension.
authorFilip Navara <filip.navara@gmail.com>
Sun, 19 Dec 2004 15:51:51 +0000 (15:51 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 19 Dec 2004 15:51:51 +0000 (15:51 +0000)
svn path=/trunk/; revision=12224

reactos/drivers/video/videoprt/videoprt.c
reactos/drivers/video/videoprt/videoprt.h

index 13a6904..8a25d54 100644 (file)
@@ -18,7 +18,7 @@
  * If not, write to the Free Software Foundation,
  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: videoprt.c,v 1.28 2004/11/24 11:12:19 ekohl Exp $
+ * $Id: videoprt.c,v 1.29 2004/12/19 15:51:51 navaraf Exp $
  */
 
 #include "videoprt.h"
@@ -445,7 +445,8 @@ IntVideoPortFindAdapter(
    }
 
    if (PhysicalDeviceObject != NULL)
-      IoAttachDeviceToDeviceStack(DeviceObject, PhysicalDeviceObject);
+      DeviceExtension->NextDeviceObject = IoAttachDeviceToDeviceStack(
+         DeviceObject, PhysicalDeviceObject);
 
    DPRINT("STATUS_SUCCESS\n");
    return STATUS_SUCCESS;
index e01a37c..07a57a5 100644 (file)
@@ -18,7 +18,7 @@
  * If not, write to the Free Software Foundation,
  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: videoprt.h,v 1.12 2004/12/18 22:14:39 blight Exp $
+ * $Id: videoprt.h,v 1.13 2004/12/19 15:51:51 navaraf Exp $
  */
 
 #ifndef VIDEOPRT_H
@@ -70,6 +70,7 @@ typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
 {
    PDEVICE_OBJECT PhysicalDeviceObject;
    PDEVICE_OBJECT FunctionalDeviceObject;
+   PDEVICE_OBJECT NextDeviceObject;
    UNICODE_STRING RegistryPath;
    PKINTERRUPT InterruptObject;
    KSPIN_LOCK InterruptSpinLock;