mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +00:00
- Do not write beyond the buffer.
svn path=/trunk/; revision=26553
This commit is contained in:
parent
a29c27d211
commit
4b61211e6d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue