reactos/drivers/net/ndis/ndis
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)