diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-07-25 12:36:03 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-07-25 12:51:43 +0200 |
commit | 647c6886da3eb236f45747925cdc1d77d7dfeb62 (patch) | |
tree | 80f686e17c608334bfc5f8f9759de356aee32375 /setup_native | |
parent | WINEGCC has to be present even in the build_config.mk. (diff) | |
download | core-647c6886da3eb236f45747925cdc1d77d7dfeb62.tar.gz core-647c6886da3eb236f45747925cdc1d77d7dfeb62.zip |
When called with no input files, just write usage (as the Windows tool does).
Change-Id: I06ffe30b187db6db3cec38bb35af9da797ebca45
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/source/win32/wintools/makecab/makecab.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/setup_native/source/win32/wintools/makecab/makecab.c b/setup_native/source/win32/wintools/makecab/makecab.c index 3cca94539db2..9e7c4feecfb8 100644 --- a/setup_native/source/win32/wintools/makecab/makecab.c +++ b/setup_native/source/win32/wintools/makecab/makecab.c @@ -329,7 +329,8 @@ int main(int argc, char *argv[]) if (ddfFile == NULL) { cabLog(CABLOG_ERR, "No DDF file specified."); - return 1; + usage(); + return 0; } cabLog(CABLOG_MSG, "=== Parsing directive file \"%s\"===", ddfFile); @@ -377,3 +378,5 @@ int main(int argc, char *argv[]) cabLog(CABLOG_MSG, "Cabinet file %s/%s created.", ddfVars.szCabPath, ddfVars.szCab); return 0; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |