[Spice-commits] common/gdi_canvas.c

Alon Levy alon at kemper.freedesktop.org
Tue Apr 17 00:19:03 PDT 2012


 common/gdi_canvas.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7814bdf71d20f69fc3e6862eed6b56f197ca2cc6
Author: Aric Stewart <aric at codeweavers.com>
Date:   Mon Apr 16 11:47:25 2012 -0500

    Add a return value to the default case in create_bitmap to satisfy VC++

diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index 4c5daea..0a04bf8 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -564,7 +564,7 @@ static uint8_t *create_bitmap(HBITMAP *bitmap, HBITMAP *prev_bitmap, HDC *dc,
         break;
     default:
         spice_warn_if_reached();
-        return;
+        return NULL;
     }
 
     if (bitmap_data) {


More information about the Spice-commits mailing list