aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r--kernel/features/load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c
index 743c009..3e1ea8e 100644
--- a/kernel/features/load.c
+++ b/kernel/features/load.c
@@ -21,10 +21,10 @@ int bin_load(char *path, struct proc *proc)
vfs_stat(path, &s);
char *data = malloc(s.size);
if (!vfs_read(path, data, 0, s.size))
- return 0;
+ return 1;
strcpy(proc->name, path);
proc_load(proc, data);
- return 1;
+ return 0;
}