- 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:
Alex Ionescu 2006-10-16 02:04:09 +00:00
parent 6ea6b76acd
commit d280d7f5a7
3 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ RegCreateKey(FRLDRHKEY ParentKey,
CmpResult = _wcsnicmp(SearchKey->Name, name, subkeyLength);
if (CmpResult == 0 && SearchKey->NameSize == NameSize)
break;
else if (CmpResult == 1)
else if (CmpResult == -1)
break;
Ptr = Ptr->Flink;

View file

@ -30,7 +30,6 @@
* the other bits specify index into the hive file. The value HCELL_NULL
* (-1) is reserved for marking invalid cells.
*/
typedef ULONG HCELL_INDEX, *PHCELL_INDEX;
#define HCELL_NULL ((HCELL_INDEX)-1)

View file

@ -333,6 +333,7 @@ HvInitialize(
Hive->FileWrite = FileWrite;
Hive->FileSetSize = FileSetSize;
Hive->FileFlush = FileFlush;
Hive->StorageTypeCount = 2;
switch (Operation)
{