mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +00:00
[MKHIVE] Check parameters before accessing them, update usage information
svn path=/trunk/; revision=47200
This commit is contained in:
parent
449bd3cb85
commit
12eb6e6cba
1 changed files with 4 additions and 3 deletions
|
@ -49,9 +49,10 @@
|
||||||
|
|
||||||
void usage (void)
|
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 (" srcdir - inf files are read from this directory\n");
|
||||||
printf (" dstdir - binary hive files are created in 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");
|
printf (" addinf - additional inf files with full path\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,14 +89,14 @@ int main (int argc, char *argv[])
|
||||||
char FileName[PATH_MAX];
|
char FileName[PATH_MAX];
|
||||||
int Param;
|
int Param;
|
||||||
|
|
||||||
printf ("Binary hive maker: %s\n", argv[3]);
|
|
||||||
|
|
||||||
if (argc < 4)
|
if (argc < 4)
|
||||||
{
|
{
|
||||||
usage ();
|
usage ();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf ("Binary hive maker: %s\n", argv[3]);
|
||||||
|
|
||||||
RegInitializeRegistry ();
|
RegInitializeRegistry ();
|
||||||
|
|
||||||
convert_path (FileName, argv[1]);
|
convert_path (FileName, argv[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue