diff options
author | Vladimir Vukicevic <vladimir@pobox.com> | 2007-10-02 10:54:44 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-11-26 21:24:48 -0800 |
commit | 198dc3573f2a80accd1ba0c188ea5378f5f99bc5 (patch) | |
tree | fc26eb9298f7df6968586cc95545ee77d9d0b081 | |
parent | bf67f28746044b6d5a712921c617ba52d31d33e3 (diff) |
[win32] return a nil surface, not NULL
Missed an error return
(cherry picked from commit c99d33b10e84883ade1402c3c1d1efdb4b46f66e)
-rw-r--r-- | src/cairo-win32-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c index 5c9d7d8f..f1a87035 100644 --- a/src/cairo-win32-surface.c +++ b/src/cairo-win32-surface.c @@ -1762,7 +1762,7 @@ cairo_win32_surface_create_with_ddb (HDC hdc, HBITMAP saved_dc_bitmap; if (format != CAIRO_FORMAT_RGB24) - return NULL; + return NIL_SURFACE; /* XXX handle these eventually format != CAIRO_FORMAT_A8 || format != CAIRO_FORMAT_A1) |