Cast the right pointer to the structure.
Fix bug 783. Thanks GvG.
Modified: trunk/reactos/lib/setupapi/devinst.c
_____
Modified: trunk/reactos/lib/setupapi/devinst.c
--- trunk/reactos/lib/setupapi/devinst.c 2005-09-23 07:32:21 UTC
(rev 18004)
+++ trunk/reactos/lib/setupapi/devinst.c 2005-09-23 08:55:33 UTC
(rev 18005)
@@ -3737,7 +3737,7 @@
{
if (DeviceInfoData)
{
- struct DeviceInfoElement *deviceInfo = (struct
DeviceInfoElement *)DeviceInfoData;
+ struct DeviceInfoElement *deviceInfo = (struct
DeviceInfoElement *)DeviceInfoData->Reserved;
deviceInfo->Flags |= DI_DIDCOMPAT;
}
else