mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SETUPAPI] Do not use strlen on buffers which may possibly contain REG_MULTI_SZ
CORE-14187
This commit is contained in:
parent
ff13301eb2
commit
aa05649902
1 changed files with 3 additions and 3 deletions
|
@ -2937,7 +2937,7 @@ CM_Get_Class_Registry_PropertyA(
|
|||
*pulLength = WideCharToMultiByte(CP_ACP,
|
||||
0,
|
||||
BufferW,
|
||||
lstrlenW(BufferW) + 1,
|
||||
ulLength,
|
||||
Buffer,
|
||||
*pulLength,
|
||||
NULL,
|
||||
|
@ -3859,7 +3859,7 @@ CM_Get_Device_ID_List_ExA(
|
|||
if (WideCharToMultiByte(CP_ACP,
|
||||
0,
|
||||
BufferW,
|
||||
lstrlenW(BufferW) + 1,
|
||||
BufferLen,
|
||||
Buffer,
|
||||
BufferLen,
|
||||
NULL,
|
||||
|
@ -4344,7 +4344,7 @@ CM_Get_Device_Interface_List_ExA(
|
|||
if (WideCharToMultiByte(CP_ACP,
|
||||
0,
|
||||
BufferW,
|
||||
lstrlenW(BufferW) + 1,
|
||||
BufferLen,
|
||||
Buffer,
|
||||
BufferLen,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue