From 00cfa292298f94555b712a253ec68d165b05b964 Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Fri, 25 Mar 2011 22:49:30 +0000 Subject: [PATCH] [WIN32K] Fix GDITAG_LDE/TAG_LDE mess svn path=/trunk/; revision=51142 --- reactos/subsystems/win32/win32k/eng/ldevobj.c | 6 +++--- reactos/subsystems/win32/win32k/include/ldevobj.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/reactos/subsystems/win32/win32k/eng/ldevobj.c b/reactos/subsystems/win32/win32k/eng/ldevobj.c index a1c75937333..9f7c1c989fd 100644 --- a/reactos/subsystems/win32/win32k/eng/ldevobj.c +++ b/reactos/subsystems/win32/win32k/eng/ldevobj.c @@ -103,7 +103,7 @@ LDEVOBJ_vFreeLDEV(PLDEVOBJ pldev) ASSERT(pldev && pldev->pGdiDriverInfo == NULL); /* Free the memory */ - ExFreePoolWithTag(pldev, TAG_LDEV); + ExFreePoolWithTag(pldev, GDITAG_LDEV); } PDEVMODEINFO @@ -145,7 +145,7 @@ LDEVOBJ_pdmiGetModes( { /* Could not get modes */ DPRINT1("returned size %ld(%ld)\n", cbSize, pdminfo->cbdevmode); - ExFreePool(pdminfo); + ExFreePoolWithTag(pdminfo, GDITAG_DEVMODE); pdminfo = NULL; } @@ -192,7 +192,7 @@ LDEVOBJ_bLoadImage( pstrPathName->Buffer, Status); /* Free the allocated memory */ - ExFreePoolWithTag(pDriverInfo, TAG_LDEV); + ExFreePoolWithTag(pDriverInfo, GDITAG_LDEV); return FALSE; } diff --git a/reactos/subsystems/win32/win32k/include/ldevobj.h b/reactos/subsystems/win32/win32k/include/ldevobj.h index 963b8332492..633f5feed68 100644 --- a/reactos/subsystems/win32/win32k/include/ldevobj.h +++ b/reactos/subsystems/win32/win32k/include/ldevobj.h @@ -5,9 +5,6 @@ #endif extern IMAGE_DOS_HEADER __ImageBase; - -#define TAG_LDEV 'Gldv' - #define GDI_ENGINE_VERSION DDI_DRIVER_VERSION_NT5_01 typedef enum