mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
[WIN32K]
- Use TAG_KEYBOARD for keyboard layouts - Free TAG_ACCEL and TAG_DRIVER allocations with their tags svn path=/trunk/; revision=47637
This commit is contained in:
parent
c01132e4ff
commit
928accdc2c
|
@ -167,7 +167,7 @@ PFN_DrvEnableDriver DRIVER_FindDDIDriver(LPCWSTR Name)
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ExFreePool(FullName);
|
||||
ExFreePoolWithTag(FullName, TAG_DRIVER);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -572,8 +572,8 @@ BOOL DRIVER_UnregisterDriver(LPCWSTR Name)
|
|||
|
||||
if (Driver != NULL)
|
||||
{
|
||||
ExFreePool(Driver->Name);
|
||||
ExFreePool(Driver);
|
||||
ExFreePoolWithTag(Driver->Name, TAG_DRIVER);
|
||||
ExFreePoolWithTag(Driver, TAG_DRIVER);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -436,7 +436,7 @@ NtUserDestroyAcceleratorTable(
|
|||
|
||||
if (Accel->Table != NULL)
|
||||
{
|
||||
ExFreePool(Accel->Table);
|
||||
ExFreePoolWithTag(Accel->Table, TAG_ACCEL);
|
||||
Accel->Table = NULL;
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ static PKBL UserLoadDllAndCreateKbl(DWORD LocaleId)
|
|||
ULONG hKl;
|
||||
LANGID langid;
|
||||
|
||||
NewKbl = ExAllocatePool(PagedPool, sizeof(KBL));
|
||||
NewKbl = ExAllocatePoolWithTag(PagedPool, sizeof(KBL), TAG_KEYBOARD);
|
||||
|
||||
if(!NewKbl)
|
||||
{
|
||||
|
@ -212,7 +212,7 @@ static PKBL UserLoadDllAndCreateKbl(DWORD LocaleId)
|
|||
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 @@ BOOL UserUnloadKbl(PKBL pKbl)
|
|||
//Unload the layout
|
||||
EngUnloadImage(pKbl->hModule);
|
||||
RemoveEntryList(&pKbl->List);
|
||||
ExFreePool(pKbl);
|
||||
ExFreePoolWithTag(pKbl, TAG_KEYBOARD);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue