From 0c7bb23c189df93c70c46ff057e75397ac6b371d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 23 Sep 2005 08:55:33 +0000 Subject: [PATCH] Cast the right pointer to the structure. Fix bug 783. Thanks GvG. svn path=/trunk/; revision=18005 --- reactos/lib/setupapi/devinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/setupapi/devinst.c b/reactos/lib/setupapi/devinst.c index f62dc264a74..67c5c61b5bb 100644 --- a/reactos/lib/setupapi/devinst.c +++ b/reactos/lib/setupapi/devinst.c @@ -3737,7 +3737,7 @@ done: { if (DeviceInfoData) { - struct DeviceInfoElement *deviceInfo = (struct DeviceInfoElement *)DeviceInfoData; + struct DeviceInfoElement *deviceInfo = (struct DeviceInfoElement *)DeviceInfoData->Reserved; deviceInfo->Flags |= DI_DIDCOMPAT; } else