mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 15:22:21 +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
|
||||
{
|
||||
if (ValueInfo->Type == REG_SZ)
|
||||
if (ValueInfo->Type == REG_SZ ||
|
||||
ValueInfo->Type == REG_MULTI_SZ ||
|
||||
ValueInfo->Type == REG_EXPAND_SZ)
|
||||
{
|
||||
PUNICODE_STRING ValueString;
|
||||
|
||||
|
@ -281,7 +283,7 @@ RtlQueryRegistryValues(IN ULONG RelativeTo,
|
|||
{
|
||||
RtlInitUnicodeString(ValueString,
|
||||
NULL);
|
||||
ValueString->MaximumLength = 256 * sizeof(WCHAR);
|
||||
ValueString->MaximumLength = ValueInfo->DataLength + sizeof(WCHAR); //256 * sizeof(WCHAR);
|
||||
ValueString->Buffer = ExAllocatePool(PagedPool,
|
||||
ValueString->MaximumLength);
|
||||
if (!ValueString->Buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue