[ros-diffs] [ekohl] 16524: Fix a string length calculation bug in StringTableDuplicate.

ekohl at svn.reactos.com ekohl at svn.reactos.com
Sat Jul 9 17:22:10 CEST 2005


Fix a string length calculation bug in StringTableDuplicate.
Modified: trunk/reactos/lib/setupapi/stringtable.c
  _____  

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)
             {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050709/a75e090d/attachment.html


More information about the Ros-diffs mailing list