Partially fixed up tree after merge from HEAD. More to do.
[reactos.git] / reactos / boot / freeldr / freeldr / reactos / reactos.c
index 15f0e90..b04b8bd 100644 (file)
@@ -820,7 +820,11 @@ LoadAndBootReactOS(PCSTR OperatingSystemName)
        /*
         * Import the loaded system hive
         */
-       RegImportBinaryHive((PCHAR)Base, Size);
+       if( !RegImportBinaryHive((PCHAR)Base, Size) )
+       {
+           printf("Could not load system hive\n");
+           return;
+       }
 
        /*
         * Initialize the 'CurrentControlSet' link
@@ -870,7 +874,8 @@ LoadAndBootReactOS(PCSTR OperatingSystemName)
 
 #undef DbgPrint
 ULONG
-DbgPrint(const char *Format, ...)
+__cdecl
+DbgPrint(PCCH Format, ...)
 {
        va_list ap;
        CHAR Buffer[512];