Allocate a final WCHAR for the NUL put on by wcsncat.

svn path=/trunk/; revision=12093
This commit is contained in:
Art Yerkes 2004-12-13 20:09:26 +00:00
parent 3340e6eecd
commit 0492a94c6f

View file

@ -833,7 +833,7 @@ NdisRegisterProtocol(
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)