mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
Fix a string length calculation bug in StringTableDuplicate.
svn path=/trunk/; revision=16524
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user