mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
gdi32: Avoid null pointer access when we are out of gdi handles.
This commit is contained in:
parent
9c7b528b6f
commit
46bfaeae9e
@ -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 )))
|
if (!(dc->hSelf = alloc_gdi_handle( &dc->header, magic, &dc_funcs )))
|
||||||
{
|
{
|
||||||
HeapFree( GetProcessHeap(), 0, dc );
|
HeapFree( GetProcessHeap(), 0, dc );
|
||||||
dc = NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
dc->nulldrv.hdc = dc->hSelf;
|
dc->nulldrv.hdc = dc->hSelf;
|
||||||
return dc;
|
return dc;
|
||||||
|
Loading…
Reference in New Issue
Block a user