mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[ADVAPI32_APITEST]
- Do not call RtlInitUnicodeString on an unterminated string (DPH) svn path=/trunk/; revision=68867
This commit is contained in:
parent
285991f04c
commit
a54882acc1
|
@ -60,8 +60,9 @@ GetKeyName(HKEY hKey, PUNICODE_STRING KeyName)
|
|||
Status = NtQueryKey(hKey, KeyNameInformation, NameInformation, InfoLength, &InfoLength);
|
||||
ok_ntstatus(Status, STATUS_SUCCESS);
|
||||
|
||||
RtlInitUnicodeString(&InfoName, NameInformation->Name);
|
||||
InfoName.Buffer = NameInformation->Name;
|
||||
InfoName.Length = NameInformation->NameLength;
|
||||
InfoName.MaximumLength = InfoName.Length;
|
||||
|
||||
RtlDuplicateUnicodeString(RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE, &InfoName, KeyName);
|
||||
|
||||
|
|
Loading…
Reference in a new issue