mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 05:28:14 +00:00
- Fix a bug in FreeLdr key creation (patch by Filip Navara).
- Make cmlib use the StorageTypeCount value since my new Cm code needs it. svn path=/trunk/; revision=24538
This commit is contained in:
parent
6ea6b76acd
commit
d280d7f5a7
3 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ RegCreateKey(FRLDRHKEY ParentKey,
|
||||||
CmpResult = _wcsnicmp(SearchKey->Name, name, subkeyLength);
|
CmpResult = _wcsnicmp(SearchKey->Name, name, subkeyLength);
|
||||||
if (CmpResult == 0 && SearchKey->NameSize == NameSize)
|
if (CmpResult == 0 && SearchKey->NameSize == NameSize)
|
||||||
break;
|
break;
|
||||||
else if (CmpResult == 1)
|
else if (CmpResult == -1)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
Ptr = Ptr->Flink;
|
Ptr = Ptr->Flink;
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
* the other bits specify index into the hive file. The value HCELL_NULL
|
* the other bits specify index into the hive file. The value HCELL_NULL
|
||||||
* (-1) is reserved for marking invalid cells.
|
* (-1) is reserved for marking invalid cells.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef ULONG HCELL_INDEX, *PHCELL_INDEX;
|
typedef ULONG HCELL_INDEX, *PHCELL_INDEX;
|
||||||
|
|
||||||
#define HCELL_NULL ((HCELL_INDEX)-1)
|
#define HCELL_NULL ((HCELL_INDEX)-1)
|
||||||
|
|
|
@ -333,6 +333,7 @@ HvInitialize(
|
||||||
Hive->FileWrite = FileWrite;
|
Hive->FileWrite = FileWrite;
|
||||||
Hive->FileSetSize = FileSetSize;
|
Hive->FileSetSize = FileSetSize;
|
||||||
Hive->FileFlush = FileFlush;
|
Hive->FileFlush = FileFlush;
|
||||||
|
Hive->StorageTypeCount = 2;
|
||||||
|
|
||||||
switch (Operation)
|
switch (Operation)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue