From c30b427a206247d399ff014ebb1bbd79a2b3fcaa Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 19 Dec 2004 15:51:51 +0000 Subject: [PATCH] - Store the device object we're attached to in the device extension. svn path=/trunk/; revision=12224 --- reactos/drivers/video/videoprt/videoprt.c | 5 +++-- reactos/drivers/video/videoprt/videoprt.h | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/video/videoprt/videoprt.c b/reactos/drivers/video/videoprt/videoprt.c index 13a69044a23..8a25d54a9ef 100644 --- a/reactos/drivers/video/videoprt/videoprt.c +++ b/reactos/drivers/video/videoprt/videoprt.c @@ -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; diff --git a/reactos/drivers/video/videoprt/videoprt.h b/reactos/drivers/video/videoprt/videoprt.h index e01a37c185a..07a57a53b71 100644 --- a/reactos/drivers/video/videoprt/videoprt.h +++ b/reactos/drivers/video/videoprt/videoprt.h @@ -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;