summaryrefslogtreecommitdiffstats
path: root/hw/vmware_vga.c
diff options
context:
space:
mode:
authorLuiz Capitulino2012-05-24 15:42:25 +0200
committerLuiz Capitulino2012-09-05 20:48:57 +0200
commitd663174dcd9623c44f3af2a46de2a55d16f15c19 (patch)
treecca6ca1137338eaa95436cadf10bb730c9b8d477 /hw/vmware_vga.c
parentqapi: convert screendump (diff)
downloadqemu-d663174dcd9623c44f3af2a46de2a55d16f15c19.tar.gz
qemu-d663174dcd9623c44f3af2a46de2a55d16f15c19.tar.xz
qemu-d663174dcd9623c44f3af2a46de2a55d16f15c19.zip
vga: ppm_save(): add error handling
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'hw/vmware_vga.c')
-rw-r--r--hw/vmware_vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index 29750e1b0d..b68e88367f 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1015,7 +1015,7 @@ static void vmsvga_screen_dump(void *opaque, const char *filename, bool cswitch,
if (s->depth == 32) {
DisplaySurface *ds = qemu_create_displaysurface_from(s->width,
s->height, 32, ds_get_linesize(s->vga.ds), s->vga.vram_ptr);
- ppm_save(filename, ds);
+ ppm_save(filename, ds, errp);
g_free(ds);
}
}