mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 23:48:12 +00: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:
parent
0f3133c308
commit
4712deb8a8
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ SETUP_CreateDevicesList(
|
||||||
{
|
{
|
||||||
cr = CM_Get_Device_ID_List_ExW(Enumerator,
|
cr = CM_Get_Device_ID_List_ExW(Enumerator,
|
||||||
Buffer,
|
Buffer,
|
||||||
BufferLength,
|
BufferLength / sizeof(WCHAR),
|
||||||
Enumerator ? CM_GETIDLIST_FILTER_ENUMERATOR : CM_GETIDLIST_FILTER_NONE,
|
Enumerator ? CM_GETIDLIST_FILTER_ENUMERATOR : CM_GETIDLIST_FILTER_NONE,
|
||||||
list->hMachine);
|
list->hMachine);
|
||||||
if (cr == CR_BUFFER_SMALL)
|
if (cr == CR_BUFFER_SMALL)
|
||||||
|
|
Loading…
Reference in a new issue