Fixed the copy length in RtlQueryRegistryValues.

svn path=/trunk/; revision=3006
This commit is contained in:
Hartmut Birr 2002-06-05 19:35:04 +00:00
parent 926cc1342f
commit 69671d74e1

View file

@ -292,7 +292,7 @@ RtlQueryRegistryValues(IN ULONG RelativeTo,
ValueString->MaximumLength - sizeof(WCHAR));
memcpy(ValueString->Buffer,
ValueInfo->Data,
ValueInfo->DataLength);
ValueString->Length);
((PWSTR)ValueString->Buffer)[ValueString->Length / sizeof(WCHAR)] = 0;
}
else