]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vnc: Fix fatal crash with vnc reverse mode
authorStefan Weil <weil@mail.berlios.de>
Wed, 16 Feb 2011 19:48:00 +0000 (20:48 +0100)
committerJustin M. Forbes <jforbes@redhat.com>
Fri, 25 Feb 2011 16:17:07 +0000 (10:17 -0600)
commit74b121a007c52b435870def4b1f1e6c42042bf51
tree14755eceb572262860a4e28f225da5cfa6beb209
parent8d610b6ba2b36bbe0159362556455b61c6566526
vnc: Fix fatal crash with vnc reverse mode

Reverse mode is unusable:

qemu -vnc localhost:5500,reverse

crashes in vnc_refresh_server_surface because some pointers are NULL.

Fix this by calling vnc_dpy_resize (which initializes these pointers)
before calling vnc_refresh.

Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc.c