[Core] fixed errant Default Data length when reading registry entry 'PartitionKey...
[mirror/winof/.git] / core / bus / kernel / bus_driver.c
index b1f1a41..b39d296 100644 (file)
@@ -329,13 +329,13 @@ __read_registry(
        RTL_QUERY_REGISTRY_TABLE        table[10];\r
        UNICODE_STRING                          param_path;\r
        UNICODE_STRING                          pkeyString;\r
-       UNICODE_STRING                          empy_string;\r
+       UNICODE_STRING                          empty_string;\r
 \r
        BUS_ENTER( BUS_DBG_DRV );\r
 \r
        __read_machine_name();\r
 \r
-       RtlInitUnicodeString( &empy_string,NULL);\r
+       RtlInitUnicodeString( &empty_string,NULL);\r
        RtlInitUnicodeString( &param_path, NULL );\r
        param_path.MaximumLength = p_registry_path->Length + \r
                sizeof(L"\\Parameters");\r
@@ -430,8 +430,8 @@ __read_registry(
        table[8].Name = L"PartitionKey";\r
        table[8].EntryContext = &pkeyString;\r
        table[8].DefaultType  = REG_SZ;\r
-       table[8].DefaultData  = &empy_string;\r
-       table[8].DefaultLength = 1024*sizeof(WCHAR);\r
+       table[8].DefaultData  = &empty_string;\r
+       table[8].DefaultLength = 0;\r
        /* Have at it! */\r
        status = RtlQueryRegistryValues( RTL_REGISTRY_ABSOLUTE, \r
                param_path.Buffer, table, NULL, NULL );\r