mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[SETUPAPI] SetupDiGetDeviceInfoListClass: fix buffer overflow (and return correct results)
This commit is contained in:
parent
faa938e9dc
commit
6cc607bac2
1 changed files with 1 additions and 1 deletions
|
@ -4440,7 +4440,7 @@ SetupDiGetDeviceInfoListClass(
|
||||||
SetLastError(ERROR_NO_ASSOCIATED_CLASS);
|
SetLastError(ERROR_NO_ASSOCIATED_CLASS);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memcpy(&ClassGuid, &list->ClassGuid, sizeof(GUID));
|
*ClassGuid = list->ClassGuid;
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue