summaryrefslogtreecommitdiffstats
path: root/include/hw/virtio/virtio-net.h
diff options
context:
space:
mode:
authorAlberto Garcia2015-06-08 11:12:15 +0200
committerGerd Hoffmann2015-06-09 10:25:21 +0200
commit08d49df0dbaacc220a099dbfb644e1dc0eda57be (patch)
treeb9cfaffd539431a0fff4c562dd081019eb068a34 /include/hw/virtio/virtio-net.h
parentMerge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (diff)
downloadqemu-08d49df0dbaacc220a099dbfb644e1dc0eda57be.tar.gz
qemu-08d49df0dbaacc220a099dbfb644e1dc0eda57be.tar.xz
qemu-08d49df0dbaacc220a099dbfb644e1dc0eda57be.zip
sdl2: fix crash in handle_windowevent() when restoring the screen size
The Ctrl-Alt-u keyboard shortcut restores the screen to its original size. In the SDL2 UI this is done by destroying the window and creating a new one. The old window emits SDL_WINDOWEVENT_HIDDEN when it's destroyed, but trying to call SDL_GetWindowFromID() from that event's window ID returns a null pointer. handle_windowevent() assumes that the pointer is never null so it results in a crash. Cc: qemu-stable@nongnu.org Signed-off-by: Alberto Garcia <berto@igalia.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/virtio/virtio-net.h')
0 files changed, 0 insertions, 0 deletions