diff options
-rw-r--r-- | savevm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -419,7 +419,9 @@ int qemu_file_get_error(QEMUFile *f) static void qemu_file_set_error(QEMUFile *f, int ret) { - f->last_error = ret; + if (f->last_error == 0) { + f->last_error = ret; + } } /** Flushes QEMUFile buffer |