[SDK:INCLUDE] Cast to type instead of PVOID

For C++ header compatibility
This commit is contained in:
Jérôme Gardou 2021-03-11 16:08:34 +01:00
parent fa74ae571b
commit 8f963c38c6

View file

@ -40,8 +40,8 @@ CmiGetNextPartialDescriptor(
if (PartialDescriptor->Type == CmResourceTypeDeviceSpecific) if (PartialDescriptor->Type == CmResourceTypeDeviceSpecific)
{ {
/* Add the size of the variable section as well */ /* Add the size of the variable section as well */
NextDescriptor = (PVOID)((ULONG_PTR)NextDescriptor + NextDescriptor = (PCM_PARTIAL_RESOURCE_DESCRIPTOR)((ULONG_PTR)NextDescriptor +
PartialDescriptor->u.DeviceSpecificData.DataSize); PartialDescriptor->u.DeviceSpecificData.DataSize);
ASSERT(NextDescriptor >= PartialDescriptor + 1); ASSERT(NextDescriptor >= PartialDescriptor + 1);
} }