mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:13:23 +00:00
Don't unreference driver for dc's with NULL drivername
svn path=/trunk/; revision=6234
This commit is contained in:
parent
e661c147ad
commit
8377a6d3cf
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dc.c,v 1.85 2003/10/03 22:07:40 gvg Exp $
|
/* $Id: dc.c,v 1.86 2003/10/04 20:26:43 gvg Exp $
|
||||||
*
|
*
|
||||||
* DC.C - Device context functions
|
* DC.C - Device context functions
|
||||||
*
|
*
|
||||||
|
@ -542,7 +542,8 @@ NtGdiDeleteDC(HDC DCHandle)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
DPRINT( "Deleting DC\n" );
|
DPRINT( "Deleting DC\n" );
|
||||||
if ((!(DCToDelete->w.flags & DC_MEMORY))) // Don't reset the display if its a memory DC
|
if (! (DCToDelete->w.flags & DC_MEMORY) /* Don't reset the display if its a memory DC */
|
||||||
|
&& NULL != DCToDelete->DriverName)
|
||||||
{
|
{
|
||||||
if (!DRIVER_UnreferenceDriver (DCToDelete->DriverName))
|
if (!DRIVER_UnreferenceDriver (DCToDelete->DriverName))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue