[PATCH 3/8] setupapi: Implement SetupDiOpenDeviceInfoW().
Zhiyi Zhang
zzhang at codeweavers.com
Thu Mar 14 22:43:56 CDT 2019
On 3/15/19 12:37 AM, Zebediah Figura wrote:
> On 3/14/19 11:32 AM, Zhiyi Zhang wrote:
>> + /* Check class GUID */
>> + size = sizeof(classW);
>> + if (RegQueryValueExW(instanceKey, ClassGUID, NULL, NULL, (BYTE *)classW, &size))
>> + goto done;
>> +
>> + classW[37] = 0;
>> + UuidFromStringW(&classW[1], &guid);
>> +
>> + if (!IsEqualGUID(&guid, &set->ClassGuid))
>> + {
>> + error = ERROR_CLASS_MISMATCH;
>> + goto done;
>> + }
>
> What if set->ClassGuid is GUID_NULL? I suspect this should match SetupDiCreateDeviceInfo().
>
Thanks. I've sent in a new version handling GUID_NULL.
More information about the wine-devel
mailing list