From 020dfee9f869b137055c2b55def96eb592d2c8d6 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 3 Jul 2008 07:01:19 +0000 Subject: [PATCH] don't crash when no command line argument is given svn path=/trunk/; revision=34273 --- reactos/tools/gendib/gendib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/tools/gendib/gendib.c b/reactos/tools/gendib/gendib.c index acc097d9c8a..488b634385d 100644 --- a/reactos/tools/gendib/gendib.c +++ b/reactos/tools/gendib/gendib.c @@ -1025,6 +1025,9 @@ main(int argc, char *argv[]) static unsigned DestBpp[] = { 8, 16, 32 }; + if (argc < 2) + return 0; + for (Index = 0; Index < sizeof(DestBpp) / sizeof(DestBpp[0]); Index++) { Generate(argv[1], DestBpp[Index]);