Author: gschneider
Date: Sun Jun 6 21:29:20 2010
New Revision: 47637
URL:
http://svn.reactos.org/svn/reactos?rev=47637&view=rev
Log:
[WIN32K]
- Use TAG_KEYBOARD for keyboard layouts
- Free TAG_ACCEL and TAG_DRIVER allocations with their tags
Modified:
trunk/reactos/subsystems/win32/win32k/misc/driver.c
trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c
trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c
Modified: trunk/reactos/subsystems/win32/win32k/misc/driver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/mi…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/misc/driver.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/misc/driver.c [iso-8859-1] Sun Jun 6 21:29:20
2010
@@ -167,7 +167,7 @@
if (!NT_SUCCESS(Status))
{
- ExFreePool(FullName);
+ ExFreePoolWithTag(FullName, TAG_DRIVER);
return NULL;
}
@@ -572,8 +572,8 @@
if (Driver != NULL)
{
- ExFreePool(Driver->Name);
- ExFreePool(Driver);
+ ExFreePoolWithTag(Driver->Name, TAG_DRIVER);
+ ExFreePoolWithTag(Driver, TAG_DRIVER);
return TRUE;
}
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/accelerator.c [iso-8859-1] Sun Jun 6
21:29:20 2010
@@ -436,7 +436,7 @@
if (Accel->Table != NULL)
{
- ExFreePool(Accel->Table);
+ ExFreePoolWithTag(Accel->Table, TAG_ACCEL);
Accel->Table = NULL;
}
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/kbdlayout.c [iso-8859-1] Sun Jun 6
21:29:20 2010
@@ -199,7 +199,7 @@
ULONG hKl;
LANGID langid;
- NewKbl = ExAllocatePool(PagedPool, sizeof(KBL));
+ NewKbl = ExAllocatePoolWithTag(PagedPool, sizeof(KBL), TAG_KEYBOARD);
if(!NewKbl)
{
@@ -212,7 +212,7 @@
if(!UserLoadKbdDll(NewKbl->Name, &NewKbl->hModule,
&NewKbl->KBTables))
{
DPRINT("%s: failed to load %x dll!\n", __FUNCTION__, LocaleId);
- ExFreePool(NewKbl);
+ ExFreePoolWithTag(NewKbl, TAG_KEYBOARD);
return NULL;
}
@@ -401,7 +401,7 @@
//Unload the layout
EngUnloadImage(pKbl->hModule);
RemoveEntryList(&pKbl->List);
- ExFreePool(pKbl);
+ ExFreePoolWithTag(pKbl, TAG_KEYBOARD);
}
return TRUE;