mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 18:02:05 +00:00
Fixed the copy length in RtlQueryRegistryValues.
svn path=/trunk/; revision=3006
This commit is contained in:
parent
926cc1342f
commit
69671d74e1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue