- Rewrite RtlQueryRegistryValues and implement all the features it requires. This is one of the most important kernel-mode API for driver support.

- Fix code in the kernel which was incorrectly calling it.

svn path=/trunk/; revision=26072
This commit is contained in:
Alex Ionescu 2007-03-14 01:44:38 +00:00
parent 1fbd004ffe
commit cd1198b3d6
2 changed files with 710 additions and 475 deletions

File diff suppressed because it is too large Load diff

View file

@ -542,7 +542,7 @@ IopAttachFilterDrivers(
PDEVICE_NODE DeviceNode,
BOOLEAN Lower)
{
RTL_QUERY_REGISTRY_TABLE QueryTable[2];
RTL_QUERY_REGISTRY_TABLE QueryTable[2] = {{0}};
PWCHAR KeyBuffer;
UNICODE_STRING Class;
WCHAR ClassBuffer[40];
@ -557,10 +557,7 @@ IopAttachFilterDrivers(
QueryTable[0].Name = L"LowerFilters";
else
QueryTable[0].Name = L"UpperFilters";
QueryTable[0].EntryContext = NULL;
QueryTable[0].Flags = RTL_QUERY_REGISTRY_REQUIRED;
QueryTable[1].QueryRoutine = NULL;
QueryTable[1].Name = NULL;
KeyBuffer = ExAllocatePool(
PagedPool,