[ros-diffs] [rharabien] 51142: [WIN32K] Fix GDITAG_LDE/TAG_LDE mess

rharabien at svn.reactos.org rharabien at svn.reactos.org
Fri Mar 25 22:49:30 UTC 2011


Author: rharabien
Date: Fri Mar 25 22:49:30 2011
New Revision: 51142

URL: http://svn.reactos.org/svn/reactos?rev=51142&view=rev
Log:
[WIN32K]

Fix GDITAG_LDE/TAG_LDE mess

Modified:
    trunk/reactos/subsystems/win32/win32k/eng/ldevobj.c
    trunk/reactos/subsystems/win32/win32k/include/ldevobj.h

Modified: trunk/reactos/subsystems/win32/win32k/eng/ldevobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/eng/ldevobj.c?rev=51142&r1=51141&r2=51142&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/eng/ldevobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/eng/ldevobj.c [iso-8859-1] Fri Mar 25 22:49:30 2011
@@ -103,7 +103,7 @@
     ASSERT(pldev && pldev->pGdiDriverInfo == NULL);
 
     /* Free the memory */
-    ExFreePoolWithTag(pldev, TAG_LDEV);
+    ExFreePoolWithTag(pldev, GDITAG_LDEV);
 }
 
 PDEVMODEINFO
@@ -145,7 +145,7 @@
     {
         /* 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 @@
                 pstrPathName->Buffer, Status);
 
         /* Free the allocated memory */
-        ExFreePoolWithTag(pDriverInfo, TAG_LDEV);
+        ExFreePoolWithTag(pDriverInfo, GDITAG_LDEV);
         return FALSE;
     }
 

Modified: trunk/reactos/subsystems/win32/win32k/include/ldevobj.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/include/ldevobj.h?rev=51142&r1=51141&r2=51142&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/ldevobj.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/ldevobj.h [iso-8859-1] Fri Mar 25 22:49:30 2011
@@ -4,9 +4,6 @@
 #define __ImageBase _image_base__
 #endif
 extern IMAGE_DOS_HEADER __ImageBase;
-
-
-#define TAG_LDEV 'Gldv'
 
 #define GDI_ENGINE_VERSION DDI_DRIVER_VERSION_NT5_01
 




More information about the Ros-diffs mailing list