mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +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
1 changed files with 1 additions and 1 deletions
|
@ -784,7 +784,7 @@ pSetupStringTableStringFromIdEx(HSTRING_TABLE hStringTable,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
dwLength = (lstrlenW(pStringTable->pSlots[dwId - 1].pString) + 1) * sizeof(WCHAR);
|
dwLength = (lstrlenW(pStringTable->pSlots[dwId - 1].pString) + 1);
|
||||||
if (dwLength <= *lpBufferLength)
|
if (dwLength <= *lpBufferLength)
|
||||||
{
|
{
|
||||||
lstrcpyW(lpBuffer, pStringTable->pSlots[dwId - 1].pString);
|
lstrcpyW(lpBuffer, pStringTable->pSlots[dwId - 1].pString);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue