mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
Fix a string length calculation bug in StringTableDuplicate.
svn path=/trunk/; revision=16524
This commit is contained in:
parent
122bcd196f
commit
de63015392
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ StringTableDuplicate(HSTRING_TABLE hStringTable)
|
||||||
{
|
{
|
||||||
if (pSourceTable->pSlots[i] != NULL)
|
if (pSourceTable->pSlots[i] != NULL)
|
||||||
{
|
{
|
||||||
length = lstrlenW((pSourceTable->pSlots[i]) + 1) * sizeof(WCHAR);
|
length = (lstrlenW(pSourceTable->pSlots[i]) + 1) * sizeof(WCHAR);
|
||||||
pDestinationTable->pSlots[i] = MyMalloc(length);
|
pDestinationTable->pSlots[i] = MyMalloc(length);
|
||||||
if (pDestinationTable->pSlots[i] != NULL)
|
if (pDestinationTable->pSlots[i] != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue