mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +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
1 changed files with 2 additions and 1 deletions
|
@ -60,8 +60,9 @@ GetKeyName(HKEY hKey, PUNICODE_STRING KeyName)
|
||||||
Status = NtQueryKey(hKey, KeyNameInformation, NameInformation, InfoLength, &InfoLength);
|
Status = NtQueryKey(hKey, KeyNameInformation, NameInformation, InfoLength, &InfoLength);
|
||||||
ok_ntstatus(Status, STATUS_SUCCESS);
|
ok_ntstatus(Status, STATUS_SUCCESS);
|
||||||
|
|
||||||
RtlInitUnicodeString(&InfoName, NameInformation->Name);
|
InfoName.Buffer = NameInformation->Name;
|
||||||
InfoName.Length = NameInformation->NameLength;
|
InfoName.Length = NameInformation->NameLength;
|
||||||
|
InfoName.MaximumLength = InfoName.Length;
|
||||||
|
|
||||||
RtlDuplicateUnicodeString(RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE, &InfoName, KeyName);
|
RtlDuplicateUnicodeString(RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE, &InfoName, KeyName);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue