Commit 46bfaeae authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Avoid null pointer access when we are out of gdi handles.

parent 9c7b528b
......@@ -151,7 +151,7 @@ DC *alloc_dc_ptr( const DC_FUNCTIONS *funcs, WORD magic )
if (!(dc->hSelf = alloc_gdi_handle( &dc->header, magic, &dc_funcs )))
{
HeapFree( GetProcessHeap(), 0, dc );
dc = NULL;
return NULL;
}
dc->nulldrv.hdc = dc->hSelf;
return dc;
......
Markdown is supported
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