From: stansmith Date: Sat, 21 Jun 2008 00:27:03 +0000 (+0000) Subject: [Core] fixed errant Default Data length when reading registry entry 'PartitionKey... X-Git-Url: http://git.etherboot.org/mirror/winof/.git/commitdiff_plain/615abf4940180906f01a83ee809612b2e3150a35 [Core] fixed errant Default Data length when reading registry entry 'PartitionKey' and the key did not exist. Showed up as a BSOD crash when loading ibbus.sys on Server 2003 x86. git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1294 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/core/bus/kernel/bus_driver.c b/core/bus/kernel/bus_driver.c index b1f1a419..b39d2965 100644 --- a/core/bus/kernel/bus_driver.c +++ b/core/bus/kernel/bus_driver.c @@ -329,13 +329,13 @@ __read_registry( RTL_QUERY_REGISTRY_TABLE table[10]; UNICODE_STRING param_path; UNICODE_STRING pkeyString; - UNICODE_STRING empy_string; + UNICODE_STRING empty_string; BUS_ENTER( BUS_DBG_DRV ); __read_machine_name(); - RtlInitUnicodeString( &empy_string,NULL); + RtlInitUnicodeString( &empty_string,NULL); RtlInitUnicodeString( ¶m_path, NULL ); param_path.MaximumLength = p_registry_path->Length + sizeof(L"\\Parameters"); @@ -430,8 +430,8 @@ __read_registry( table[8].Name = L"PartitionKey"; table[8].EntryContext = &pkeyString; table[8].DefaultType = REG_SZ; - table[8].DefaultData = &empy_string; - table[8].DefaultLength = 1024*sizeof(WCHAR); + table[8].DefaultData = &empty_string; + table[8].DefaultLength = 0; /* Have at it! */ status = RtlQueryRegistryValues( RTL_REGISTRY_ABSOLUTE, param_path.Buffer, table, NULL, NULL );