mirror of
https://github.com/vivier/EMILE.git
synced 2025-02-06 08:30:13 +00:00
correct return code of map_write
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
1ec58fc07f
commit
e6a2eb39cf
@ -23,7 +23,7 @@ int map_write(map_t *map, int part)
|
||||
|
||||
ret = map->device->write_sector(map->device->data, offset / blocksize, &map->partition,
|
||||
sizeof(struct Partition));
|
||||
if (ret != -1)
|
||||
if (ret == -1)
|
||||
return -1;
|
||||
|
||||
map->current = part;
|
||||
|
Loading…
x
Reference in New Issue
Block a user