mirror of
https://github.com/reactos/reactos.git
synced 2025-04-06 05:34:22 +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,
|
||||
Buffer,
|
||||
BufferLength,
|
||||
BufferLength / sizeof(WCHAR),
|
||||
Enumerator ? CM_GETIDLIST_FILTER_ENUMERATOR : CM_GETIDLIST_FILTER_NONE,
|
||||
list->hMachine);
|
||||
if (cr == CR_BUFFER_SMALL)
|
||||
|
|
Loading…
Reference in a new issue