mirror of
https://github.com/reactos/reactos.git
synced 2025-06-18 04:05:21 +00:00
don't crash when no command line argument is given
svn path=/trunk/; revision=34273
This commit is contained in:
parent
c84f6bb63c
commit
020dfee9f8
1 changed files with 3 additions and 0 deletions
|
@ -1025,6 +1025,9 @@ main(int argc, char *argv[])
|
||||||
static unsigned DestBpp[] =
|
static unsigned DestBpp[] =
|
||||||
{ 8, 16, 32 };
|
{ 8, 16, 32 };
|
||||||
|
|
||||||
|
if (argc < 2)
|
||||||
|
return 0;
|
||||||
|
|
||||||
for (Index = 0; Index < sizeof(DestBpp) / sizeof(DestBpp[0]); Index++)
|
for (Index = 0; Index < sizeof(DestBpp) / sizeof(DestBpp[0]); Index++)
|
||||||
{
|
{
|
||||||
Generate(argv[1], DestBpp[Index]);
|
Generate(argv[1], DestBpp[Index]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue