[ros-diffs] [gvg] 20472: Allocate room for terminator. Fixes bug 1203, r20343 can be re-applied.

gvg at svn.reactos.org gvg at svn.reactos.org
Sat Dec 31 00:44:14 CET 2005


Allocate room for terminator. Fixes bug 1203, r20343 can be re-applied.
Modified: trunk/reactos/lib/setupapi/devinst.c
  _____  

Modified: trunk/reactos/lib/setupapi/devinst.c
--- trunk/reactos/lib/setupapi/devinst.c	2005-12-30 23:42:04 UTC
(rev 20471)
+++ trunk/reactos/lib/setupapi/devinst.c	2005-12-30 23:44:03 UTC
(rev 20472)
@@ -5608,7 +5608,7 @@

                 currentInfFileDetails = HeapAlloc(
                     GetProcessHeap(),
                     0,
-                    FIELD_OFFSET(struct InfFileDetails,
FullInfFileName) + wcslen(FullInfFileName) * sizeof(WCHAR) +
UNICODE_NULL);
+                    FIELD_OFFSET(struct InfFileDetails,
FullInfFileName) + wcslen(FullInfFileName) * sizeof(WCHAR) +
sizeof(UNICODE_NULL));
                 if (!currentInfFileDetails)
                     continue;
                 memset(currentInfFileDetails, 0, sizeof(struct
InfFileDetails));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051231/29e41ec9/attachment.html


More information about the Ros-diffs mailing list