Cast the right pointer to the structure.

Fix bug 783. Thanks GvG.

svn path=/trunk/; revision=18005
This commit is contained in:
Hervé Poussineau 2005-09-23 08:55:33 +00:00
parent 9c356c1031
commit 0c7bb23c18

View file

@ -3737,7 +3737,7 @@ done:
{ {
if (DeviceInfoData) if (DeviceInfoData)
{ {
struct DeviceInfoElement *deviceInfo = (struct DeviceInfoElement *)DeviceInfoData; struct DeviceInfoElement *deviceInfo = (struct DeviceInfoElement *)DeviceInfoData->Reserved;
deviceInfo->Flags |= DI_DIDCOMPAT; deviceInfo->Flags |= DI_DIDCOMPAT;
} }
else else