mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 15:34:13 +00:00
- Do not write beyond the buffer.
svn path=/trunk/; revision=26553
This commit is contained in:
parent
a29c27d211
commit
4b61211e6d
|
@ -188,7 +188,7 @@ SetupDiCreateDeviceInfoListExW(
|
|||
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||
goto cleanup;
|
||||
}
|
||||
ZeroMemory(list, sizeof(struct DeviceInfoSet));
|
||||
ZeroMemory(list, FIELD_OFFSET(struct DeviceInfoSet, szData));
|
||||
|
||||
list->magic = SETUP_DEV_INFO_SET_MAGIC;
|
||||
memcpy(
|
||||
|
|
Loading…
Reference in a new issue