Commit c51b0d31 authored by Alexei Podtelezhnikov's avatar Alexei Podtelezhnikov
Browse files

* graph/win32/grwin32.c (gr_win32_surface_init): Check allocations.

parent c8e4f6d4
......@@ -472,7 +472,8 @@ gr_win32_surface_init( grWin32Surface* surface,
LOG(( " -- width = %d\n", bitmap->width ));
LOG(( " -- height = %d\n", bitmap->rows ));
gr_win32_surface_resize( surface, bitmap->width, bitmap->rows );
if ( !gr_win32_surface_resize( surface, bitmap->width, bitmap->rows ) )
return 0;
surface->bmiHeader.biSize = sizeof( BITMAPINFOHEADER );
surface->bmiHeader.biPlanes = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment