mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Do not write beyond the buffer.
svn path=/trunk/; revision=26553
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user