Changeset 333
- Timestamp:
- Aug 7, 2017, 10:11:25 AM (7 years ago)
- Location:
- trunk/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r332 r333 219 219 xptr_t file_xp; // extended pointer on created file descriptor 220 220 uint32_t file_id; // file descriptor index (unused) 221 uint32_t count; // bytes counter222 221 error_t error; 223 222 … … 292 291 293 292 // load seg descriptors array to local buffer 294 count= vfs_user_move( true, // to_buffer293 error = vfs_user_move( true, // to_buffer 295 294 file_xp, 296 295 segs_base, 297 296 segs_size ); 298 297 299 if( count != segs_size)298 if( error ) 300 299 { 301 300 printk("\n[ERROR] in %s : cannot read segments descriptors\n", __FUNCTION__ ); -
trunk/kernel/vfs/vfs.c
r317 r333 713 713 714 714 if( error ) return -1; 715 else return size;715 else return 0; 716 716 } 717 717 else
Note: See TracChangeset
for help on using the changeset viewer.