Fix a string length calculation bug in StringTableDuplicate.
Modified: trunk/reactos/lib/setupapi/stringtable.c
--- trunk/reactos/lib/setupapi/stringtable.c 2005-07-09 13:23:05 UTC (rev 16523) +++ trunk/reactos/lib/setupapi/stringtable.c 2005-07-09 15:22:07 UTC (rev 16524) @@ -276,7 +276,7 @@
{ 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) {