From de63015392a602021950c202f33dbb549edcb4a5 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 9 Jul 2005 15:22:07 +0000 Subject: [PATCH] Fix a string length calculation bug in StringTableDuplicate. svn path=/trunk/; revision=16524 --- reactos/lib/setupapi/stringtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/setupapi/stringtable.c b/reactos/lib/setupapi/stringtable.c index 827cdc61e93..52f7fb6773b 100644 --- a/reactos/lib/setupapi/stringtable.c +++ b/reactos/lib/setupapi/stringtable.c @@ -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) {