mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Fix a critical bug in KeFindConfigurationEntry; it passed NULL to KeFindConfigurationNextEntry instead of passing a pointer containing NULL. KeFindConfigurationNextEntry dereferenced this and, because the old bootloader maps NULL, read some bogus value. KeFindConfigurationNextEntry would then try to find something in the configuration tree that matched this, but failed. This was no problem because we currently have no callers of those routines in ReactOS. However, the kdcom.dll from Windows 2003 calls KeFindConfigurationEntry to find COM port entries, and this would have crashed if FreeLdr hadn't mapped it. As it is, it didn't, and kdcom fell back to default values for the COM port (which worked). WinLdr doesn't map NULL and this resulted in a crash during kdcom initialization. Bug introduced in revision 15911 over 4 years ago. KD64 now works when booting with the new boot method.
svn path=/trunk/; revision=43382
This commit is contained in:
parent
5d5e6d95d9
commit
3a58832c04
1 changed files with 3 additions and 1 deletions
|
@ -24,12 +24,14 @@ KeFindConfigurationEntry(IN PCONFIGURATION_COMPONENT_DATA Child,
|
|||
IN CONFIGURATION_TYPE Type,
|
||||
IN PULONG ComponentKey OPTIONAL)
|
||||
{
|
||||
PCONFIGURATION_COMPONENT_DATA NextLink = NULL;
|
||||
|
||||
/* Start Search at Root */
|
||||
return KeFindConfigurationNextEntry(Child,
|
||||
Class,
|
||||
Type,
|
||||
ComponentKey,
|
||||
NULL);
|
||||
&NextLink);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue