- Do not call RtlInitUnicodeString on an unterminated string (DPH)
svn path=/trunk/; revision=68867
Status = NtQueryKey(hKey, KeyNameInformation, NameInformation, InfoLength, &InfoLength);
ok_ntstatus(Status, STATUS_SUCCESS);
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.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);