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

Alon Levy alevy at redhat.com
Thu Jul 7 02:43:11 PDT 2011


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

diff --git a/display/driver.c b/display/driver.c
index 00fb5a3..357f79c 100644
--- a/display/driver.c
+++ b/display/driver.c
@@ -1231,7 +1231,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