mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
||||
* 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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue