https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8f963c38c6c72f3208f0b…
commit 8f963c38c6c72f3208f0b0ca19ea303001a74c70
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Thu Mar 11 16:08:34 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Mar 24 11:08:40 2021 +0100
[SDK:INCLUDE] Cast to type instead of PVOID
For C++ header compatibility
---
sdk/include/reactos/drivers/cmreslist.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdk/include/reactos/drivers/cmreslist.h
b/sdk/include/reactos/drivers/cmreslist.h
index 5b52b8b6656..73229767cfd 100644
--- a/sdk/include/reactos/drivers/cmreslist.h
+++ b/sdk/include/reactos/drivers/cmreslist.h
@@ -40,8 +40,8 @@ CmiGetNextPartialDescriptor(
if (PartialDescriptor->Type == CmResourceTypeDeviceSpecific)
{
/* Add the size of the variable section as well */
- NextDescriptor = (PVOID)((ULONG_PTR)NextDescriptor +
- PartialDescriptor->u.DeviceSpecificData.DataSize);
+ NextDescriptor = (PCM_PARTIAL_RESOURCE_DESCRIPTOR)((ULONG_PTR)NextDescriptor +
+ PartialDescriptor->u.DeviceSpecificData.DataSize);
ASSERT(NextDescriptor >= PartialDescriptor + 1);
}