mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[SETUPAPI] Fix wrong buffer size given to CM_Get_Device_ID_List_ExW
This buffer overflow was introduced in previous commit.
This commit is contained in:
@@ -142,7 +142,7 @@ SETUP_CreateDevicesList(
|
||||
{
|
||||
cr = CM_Get_Device_ID_List_ExW(Enumerator,
|
||||
Buffer,
|
||||
BufferLength,
|
||||
BufferLength / sizeof(WCHAR),
|
||||
Enumerator ? CM_GETIDLIST_FILTER_ENUMERATOR : CM_GETIDLIST_FILTER_NONE,
|
||||
list->hMachine);
|
||||
if (cr == CR_BUFFER_SMALL)
|
||||
|
||||
Reference in New Issue
Block a user