From 8377a6d3cf0a8a8d034169ecb7936edf19bbd37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 4 Oct 2003 20:26:43 +0000 Subject: [PATCH] Don't unreference driver for dc's with NULL drivername svn path=/trunk/; revision=6234 --- reactos/subsys/win32k/objects/dc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/objects/dc.c b/reactos/subsys/win32k/objects/dc.c index f4aaed10e50..5593bd14dec 100644 --- a/reactos/subsys/win32k/objects/dc.c +++ b/reactos/subsys/win32k/objects/dc.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * 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 * @@ -542,7 +542,8 @@ NtGdiDeleteDC(HDC DCHandle) return FALSE; } 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)) {