mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Bail out of RtlQueryRegistryValues if RTL_QUERY_REGISTRY_REQUIRED specified
and value not found svn path=/trunk/; revision=6425
This commit is contained in:
parent
cda5a1a107
commit
bdb5b824b5
1 changed files with 9 additions and 6 deletions
|
@ -459,12 +459,15 @@ RtlQueryRegistryValues(IN ULONG RelativeTo,
|
||||||
&ResultSize);
|
&ResultSize);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
Status = QueryEntry->QueryRoutine(QueryEntry->Name,
|
if (! (QueryEntry->Flags & RTL_QUERY_REGISTRY_REQUIRED))
|
||||||
QueryEntry->DefaultType,
|
{
|
||||||
QueryEntry->DefaultData,
|
Status = QueryEntry->QueryRoutine(QueryEntry->Name,
|
||||||
QueryEntry->DefaultLength,
|
QueryEntry->DefaultType,
|
||||||
Context,
|
QueryEntry->DefaultData,
|
||||||
QueryEntry->EntryContext);
|
QueryEntry->DefaultLength,
|
||||||
|
Context,
|
||||||
|
QueryEntry->EntryContext);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if ((ValueInfo->Type == REG_MULTI_SZ) &&
|
else if ((ValueInfo->Type == REG_MULTI_SZ) &&
|
||||||
!(QueryEntry->Flags & RTL_QUERY_REGISTRY_NOEXPAND))
|
!(QueryEntry->Flags & RTL_QUERY_REGISTRY_NOEXPAND))
|
||||||
|
|
Loading…
Reference in a new issue