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