Author: gschneider
Date: Fri May 14 19:46:14 2010
New Revision: 47200
URL:
http://svn.reactos.org/svn/reactos?rev=47200&view=rev
Log:
[MKHIVE] Check parameters before accessing them, update usage information
Modified:
trunk/reactos/tools/mkhive/mkhive.c
Modified: trunk/reactos/tools/mkhive/mkhive.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/mkhive/mkhive.c?rev=…
==============================================================================
--- trunk/reactos/tools/mkhive/mkhive.c [iso-8859-1] (original)
+++ trunk/reactos/tools/mkhive/mkhive.c [iso-8859-1] Fri May 14 19:46:14 2010
@@ -49,9 +49,10 @@
void usage (void)
{
- printf ("Usage: mkhive <srcdir> <dstdir> [addinf]\n\n");
+ printf ("Usage: mkhive <srcdir> <dstdir> <arch>
[addinf]\n\n");
printf (" srcdir - inf files are read from this directory\n");
printf (" dstdir - binary hive files are created in this directory\n");
+ printf (" arch - architecture\n");
printf (" addinf - additional inf files with full path\n");
}
@@ -88,13 +89,13 @@
char FileName[PATH_MAX];
int Param;
- printf ("Binary hive maker: %s\n", argv[3]);
-
if (argc < 4)
{
usage ();
return 1;
}
+
+ printf ("Binary hive maker: %s\n", argv[3]);
RegInitializeRegistry ();