[spice-common PATCH 1/2] common: prepare for not aborting on spice_critical

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index deb7649..05edf68 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -354,6 +354,7 @@ static void set_path(GdiCanvas *canvas, SpicePath *s)
                 if (!LineTo(canvas->dc, (int)fix_to_double(point->x),
                             (int)fix_to_double(point->y))) {
                     spice_critical("LineTo failed");
+                    return;
                 }
             }
         }
@@ -363,11 +364,13 @@ static void set_path(GdiCanvas *canvas, SpicePath *s)
             if (seg->flags & SPICE_PATH_CLOSE) {
                 if (!CloseFigure(canvas->dc)) {
                     spice_critical("CloseFigure failed");
+                    return;
                 }
             }
 
             if (!EndPath(canvas->dc)) {
                 spice_critical("EndPath failed");
+                return;
             }
         }
 
-- 
1.7.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]