Fix a string length calculation bug in StringTableDuplicate.

svn path=/trunk/; revision=16524
This commit is contained in:
Eric Kohl 2005-07-09 15:22:07 +00:00
parent 122bcd196f
commit de63015392

View file

@ -276,7 +276,7 @@ StringTableDuplicate(HSTRING_TABLE hStringTable)
{
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);
if (pDestinationTable->pSlots[i] != NULL)
{