mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:22:58 +00:00
RtlQueryRegistryValues() must treat REG_MULTI_SZ and REG_EXPAND_SZ values like REG_SZ values upon direct queries.
svn path=/trunk/; revision=3115
This commit is contained in:
parent
57c8a1c6e3
commit
b29a9b85b9
1 changed files with 4 additions and 2 deletions
|
@ -272,7 +272,9 @@ RtlQueryRegistryValues(IN ULONG RelativeTo,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (ValueInfo->Type == REG_SZ)
|
if (ValueInfo->Type == REG_SZ ||
|
||||||
|
ValueInfo->Type == REG_MULTI_SZ ||
|
||||||
|
ValueInfo->Type == REG_EXPAND_SZ)
|
||||||
{
|
{
|
||||||
PUNICODE_STRING ValueString;
|
PUNICODE_STRING ValueString;
|
||||||
|
|
||||||
|
@ -281,7 +283,7 @@ RtlQueryRegistryValues(IN ULONG RelativeTo,
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString(ValueString,
|
RtlInitUnicodeString(ValueString,
|
||||||
NULL);
|
NULL);
|
||||||
ValueString->MaximumLength = 256 * sizeof(WCHAR);
|
ValueString->MaximumLength = ValueInfo->DataLength + sizeof(WCHAR); //256 * sizeof(WCHAR);
|
||||||
ValueString->Buffer = ExAllocatePool(PagedPool,
|
ValueString->Buffer = ExAllocatePool(PagedPool,
|
||||||
ValueString->MaximumLength);
|
ValueString->MaximumLength);
|
||||||
if (!ValueString->Buffer)
|
if (!ValueString->Buffer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue