[ros-diffs] [fireball] 28575: - Fix boot (thx hpoussin for hint).

fireball at svn.reactos.org fireball at svn.reactos.org
Sun Aug 26 20:18:48 CEST 2007


Author: fireball
Date: Sun Aug 26 22:18:48 2007
New Revision: 28575

URL: http://svn.reactos.org/svn/reactos?rev=28575&view=rev
Log:
- Fix boot (thx hpoussin for hint).

Modified:
    trunk/reactos/ntoskrnl/cm/registry.c

Modified: trunk/reactos/ntoskrnl/cm/registry.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/registry.c?rev=28575&r1=28574&r2=28575&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/cm/registry.c (original)
+++ trunk/reactos/ntoskrnl/cm/registry.c Sun Aug 26 22:18:48 2007
@@ -142,7 +142,7 @@
         {
             /* Check if it's not the SYSTEM hive that we already initialized */
             if ((MdBlock->BasePage) !=
-                ((ULONG_PTR)KeLoaderBlock->RegistryBase >> PAGE_SHIFT))
+                (((ULONG_PTR)KeLoaderBlock->RegistryBase &~ KSEG0_BASE) >> PAGE_SHIFT))
             {
                 /* Hardware hive break out */
                 break;
@@ -156,7 +156,7 @@
     /* We need a hardware hive */
     ASSERT(MdBlock);
     *Length = MdBlock->PageCount << PAGE_SHIFT;
-    return (PVOID)(MdBlock->BasePage << PAGE_SHIFT);
+    return (PVOID)((MdBlock->BasePage << PAGE_SHIFT) | KSEG0_BASE);
 }
 
 VOID




More information about the Ros-diffs mailing list