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

This commit is contained in:
Alexandre Julliard 2011-03-12 20:40:30 +01:00
parent 9c7b528b6f
commit 46bfaeae9e
1 changed files with 1 additions and 1 deletions

View File

@ -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;