https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6cc607bac293451d78942…
commit 6cc607bac293451d7894204a8c32ef53b769fadb
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Mar 30 22:31:21 2019 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Apr 1 11:38:32 2019 +0200
[SETUPAPI] SetupDiGetDeviceInfoListClass: fix buffer overflow (and return correct
results)
---
dll/win32/setupapi/devinst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/setupapi/devinst.c b/dll/win32/setupapi/devinst.c
index 10ffd29251..f9a307e07c 100644
--- a/dll/win32/setupapi/devinst.c
+++ b/dll/win32/setupapi/devinst.c
@@ -4440,7 +4440,7 @@ SetupDiGetDeviceInfoListClass(
SetLastError(ERROR_NO_ASSOCIATED_CLASS);
else
{
- memcpy(&ClassGuid, &list->ClassGuid, sizeof(GUID));
+ *ClassGuid = list->ClassGuid;
ret = TRUE;
}