[Spice-devel] [PATCH] don't create a surface if vram mspace is unmapped

Alon Levy alevy at redhat.com
Wed Jul 6 05:34:35 PDT 2011


---
 display/driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/display/driver.c b/display/driver.c
index fd9902d..872c40a 100644
--- a/display/driver.c
+++ b/display/driver.c
@@ -1229,7 +1229,7 @@ HBITMAP APIENTRY DrvCreateDeviceBitmap(DHPDEV dhpdev, SIZEL size, ULONG format)
 
     pdev = (PDev *)dhpdev;
 
-    if (!pdev->vram_slot_initialized || pdev->bitmap_format != format) {
+    if (!pdev->vram_slot_initialized || pdev->bitmap_format != format || pdev->fb == 0) {
         return 0;
     }
 
-- 
1.7.5.4



More information about the Spice-devel mailing list