projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
122bcd1
)
Fix a string length calculation bug in StringTableDuplicate.
author
Eric Kohl
<eric.kohl@reactos.org>
Sat, 9 Jul 2005 15:22:07 +0000
(15:22 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sat, 9 Jul 2005 15:22:07 +0000
(15:22 +0000)
svn path=/trunk/; revision=16524
reactos/lib/setupapi/stringtable.c
patch
|
blob
|
history
diff --git
a/reactos/lib/setupapi/stringtable.c
b/reactos/lib/setupapi/stringtable.c
index
827cdc6
..
52f7fb6
100644
(file)
--- 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)
{