[SETUPAPI] Do not use strlen on buffers which may possibly contain REG_MULTI_SZ

CORE-14187
This commit is contained in:
Victor Perevertkin 2020-12-06 19:49:57 +03:00
parent ff13301eb2
commit aa05649902
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -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,