diff options
Diffstat (limited to 'addons/image')
| -rw-r--r-- | addons/image/image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/image/image.c b/addons/image/image.c index f7a228c8..1aa34428 100644 --- a/addons/image/image.c +++ b/addons/image/image.c @@ -131,10 +131,12 @@ static uint32_t dump(void *st, uint8_t *buf, uint32_t n) { return im->len; } +/* On a state with no picture (a Restore's), the record's; one open made + * from the file as it is now (it changed on disk) keeps that one. */ static int load(void *st, const uint8_t *buf, uint32_t n, uint32_t version) { (void)version; if (!st) return 1; - keep(st, buf, n); + if (!((image *)st)->raw) keep(st, buf, n); return PA_OK; } |
