[6900] Fix monitor command (screendump) (Stefan Weil)
Revision: 6900
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6900 Author: aliguori Date: 2009-03-28 17:29:02 +0000 (Sat, 28 Mar 2009)
Log Message:
-----------
Fix monitor command (screendump) (Stefan Weil)
starting with r6839, the monitor command 'screendump' raises a nullpointer memory access which crashs Qemu.
Fix crash when calling screendump from monitor.
This was a regression introduced with r6839:
DisplayAllocator interface (Stefano Stabellini)
Signed-off-by Stefan Weil <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/hw/vga.c
Modified: trunk/hw/vga.c
===================================================================
hw/vga.c +1 -0
@@ -2637,6 +2637,7 @@ dcl.dpy_resize = vga_save_dpy_resize; dcl.dpy_refresh = vga_save_dpy_refresh;register_displaychangelistener (ds, &dcl); + ds->allocator = &default_allocator; ds->surface =qemu_create_displaysurface (ds, w, h); s->ds = ds;