Commit in reactos/tools/mkhive on MAIN
binhive.c+2-11.11 -> 1.12
mkhive.c+21-61.4 -> 1.5
+23-7
2 modified files
add some error checking

reactos/tools/mkhive
binhive.c 1.11 -> 1.12
diff -u -r1.11 -r1.12
--- binhive.c	29 May 2004 21:15:58 -0000	1.11
+++ binhive.c	15 Nov 2004 19:20:23 -0000	1.12
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: binhive.c,v 1.11 2004/05/29 21:15:58 navaraf Exp $
+/* $Id: binhive.c,v 1.12 2004/11/15 19:20:23 gdalsnes Exp $
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS hive maker
  * FILE:            tools/mkhive/binhive.c
@@ -1357,6 +1357,7 @@
   File = fopen (FileName, "w+b");
   if (File == NULL)
     {
+      printf("    Error creating/opening file\n");
       return FALSE;
     }
 

reactos/tools/mkhive
mkhive.c 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- mkhive.c	29 May 2004 21:15:58 -0000	1.4
+++ mkhive.c	15 Nov 2004 19:20:23 -0000	1.5
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: mkhive.c,v 1.4 2004/05/29 21:15:58 navaraf Exp $
+/* $Id: mkhive.c,v 1.5 2004/11/15 19:20:23 gdalsnes Exp $
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS hive maker
  * FILE:            tools/mkhive/mkhive.c
@@ -126,27 +126,42 @@
   convert_path (FileName, argv[2]);
   strcat (FileName, DIR_SEPARATOR_STRING);
   strcat (FileName, "system");
-  ExportBinaryHive (FileName, "\\Registry\\Machine\\SYSTEM");
+  if (!ExportBinaryHive (FileName, "\\Registry\\Machine\\SYSTEM"))
+  {
+     return 1;
+  }
 
   convert_path (FileName, argv[2]);
   strcat (FileName, DIR_SEPARATOR_STRING);
   strcat (FileName, "software");
-  ExportBinaryHive (FileName, "\\Registry\\Machine\\SOFTWARE");
+  if (!ExportBinaryHive (FileName, "\\Registry\\Machine\\SOFTWARE"))
+  {
+     return 1;
+  }
 
   convert_path (FileName, argv[2]);
   strcat (FileName, DIR_SEPARATOR_STRING);
   strcat (FileName, "sam");
-  ExportBinaryHive (FileName, "\\Registry\\Machine\\SAM");
+  if (!ExportBinaryHive (FileName, "\\Registry\\Machine\\SAM"))
+  {
+     return 1;
+  }
 
   convert_path (FileName, argv[2]);
   strcat (FileName, DIR_SEPARATOR_STRING);
   strcat (FileName, "security");
-  ExportBinaryHive (FileName, "\\Registry\\Machine\\SECURITY");
+  if (!ExportBinaryHive (FileName, "\\Registry\\Machine\\SECURITY"))
+  {
+     return 1;
+  }
 
   convert_path (FileName, argv[2]);
   strcat (FileName, DIR_SEPARATOR_STRING);
   strcat (FileName, "default");
-  ExportBinaryHive (FileName, "\\Registry\\User\\.DEFAULT");
+  if (!ExportBinaryHive (FileName, "\\Registry\\User\\.DEFAULT"))
+  {
+     return 1;
+  }
 
 //  RegShutdownRegistry ();
 
CVSspam 0.2.8