Commit in reactos/drivers/net/ndis/ndis on MAIN
protocol.c+1-11.23 -> 1.24
Allocate a final WCHAR for the NUL put on by wcsncat.

reactos/drivers/net/ndis/ndis
protocol.c 1.23 -> 1.24
diff -u -r1.23 -r1.24
--- protocol.c	1 Dec 2004 08:02:28 -0000	1.23
+++ protocol.c	13 Dec 2004 20:09:26 -0000	1.24
@@ -833,7 +833,7 @@
       PathLength = sizeof(SERVICES_KEY) +                               /* \Registry\Machine\System\CurrentControlSet\Services\ */
           wcslen( DataPtr + 8 ) * sizeof(WCHAR) + /* Adapter1  (extracted from \Device\Adapter1)          */
           sizeof(PARAMETERS_KEY) +                                      /* \Parameters\                                         */
-          ProtocolCharacteristics->Name.Length;                         /* Tcpip                                                */
+          ProtocolCharacteristics->Name.Length + sizeof(WCHAR);                         /* Tcpip                                                */
 
       RegistryPathStr = ExAllocatePool(PagedPool, PathLength);
       if(!RegistryPathStr)
CVSspam 0.2.8