mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
- Fixed the initializing of the buffer length in CmiConnectHive.
svn path=/trunk/; revision=4492
This commit is contained in:
parent
dd53666e1a
commit
e174c6dcd5
|
@ -1,4 +1,4 @@
|
|||
/* $Id: registry.c,v 1.90 2003/04/04 14:05:29 ekohl Exp $
|
||||
/* $Id: registry.c,v 1.91 2003/04/04 21:52:25 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -652,7 +652,7 @@ CmiConnectHive(PREGISTRY_HIVE RegistryHive,
|
|||
}
|
||||
|
||||
ParentKeyName.Length = (USHORT)(SubName - KeyName->Buffer) * sizeof(WCHAR);
|
||||
ParentKeyName.MaximumLength = ParentKeyName.MaximumLength + sizeof(WCHAR);
|
||||
ParentKeyName.MaximumLength = ParentKeyName.Length + sizeof(WCHAR);
|
||||
ParentKeyName.Buffer = ExAllocatePool (NonPagedPool,
|
||||
ParentKeyName.MaximumLength);
|
||||
RtlCopyMemory (ParentKeyName.Buffer,
|
||||
|
|
Loading…
Reference in a new issue