mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[cond] Do not lost error code from file_set_size2
This commit is contained in:
		
							parent
							
								
									75a874d7e5
								
							
						
					
					
						commit
						af61ae90e2
					
				
					 1 changed files with 2 additions and 6 deletions
				
			
		|  | @ -358,16 +358,12 @@ ext2fs_file_write_inline_data(ext2_file_t file, const void *buf, | |||
| 
 | ||||
| 		/* Update inode size */ | ||||
| 		if (count != 0 && EXT2_I_SIZE(&file->inode) < file->pos) { | ||||
| 			errcode_t	rc; | ||||
| 
 | ||||
| 			rc = ext2fs_file_set_size2(file, file->pos); | ||||
| 			if (retval == 0) | ||||
| 				retval = rc; | ||||
| 			retval = ext2fs_file_set_size2(file, file->pos); | ||||
| 		} | ||||
| 
 | ||||
| 		if (written) | ||||
| 			*written = count; | ||||
| 		return 0; | ||||
| 		return retval; | ||||
| 	} | ||||
| 
 | ||||
| expand: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue