summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-07-25 12:36:03 +0200
committerJan Holesovsky <kendy@suse.cz>2012-07-25 12:51:43 +0200
commit647c6886da3eb236f45747925cdc1d77d7dfeb62 (patch)
tree80f686e17c608334bfc5f8f9759de356aee32375 /setup_native
parente59334ffbb6a3aac1591b7bec23d294f06d96b0e (diff)
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.c5
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: */