mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Allocate a final WCHAR for the NUL put on by wcsncat.
svn path=/trunk/; revision=12093
This commit is contained in:
parent
3340e6eecd
commit
0492a94c6f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue