mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 22:16:01 +00:00
[SETUPAPI]
- Buffer lengths are calculated in chars not bytes. - Fixes use of CM_Get_Device_ID_Size / CM_Get_Device_ID svn path=/trunk/; revision=69327
This commit is contained in:
parent
749209aeaf
commit
6a3a86fe62
|
@ -784,7 +784,7 @@ pSetupStringTableStringFromIdEx(HSTRING_TABLE hStringTable,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
dwLength = (lstrlenW(pStringTable->pSlots[dwId - 1].pString) + 1) * sizeof(WCHAR);
|
||||
dwLength = (lstrlenW(pStringTable->pSlots[dwId - 1].pString) + 1);
|
||||
if (dwLength <= *lpBufferLength)
|
||||
{
|
||||
lstrcpyW(lpBuffer, pStringTable->pSlots[dwId - 1].pString);
|
||||
|
|
Loading…
Reference in a new issue