mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
[WIN32K] Tag more pool allocations
svn path=/trunk/; revision=47741
This commit is contained in:
parent
80722c4d1f
commit
fdec1db734
|
@ -222,10 +222,10 @@ EngLoadImage (LPWSTR DriverName)
|
|||
DPRINT1("ZwSetSystemInformation failed with Status 0x%lx\n", Status);
|
||||
}
|
||||
else {
|
||||
DriverInfo = ExAllocatePool(PagedPool, sizeof(DRIVERS));
|
||||
DriverInfo = ExAllocatePoolWithTag(PagedPool, sizeof(DRIVERS), TAG_DRIVER);
|
||||
DriverInfo->DriverName.MaximumLength = GdiDriverInfo.DriverName.MaximumLength;
|
||||
DriverInfo->DriverName.Length = GdiDriverInfo.DriverName.Length;
|
||||
DriverInfo->DriverName.Buffer = ExAllocatePool(PagedPool, GdiDriverInfo.DriverName.MaximumLength);
|
||||
DriverInfo->DriverName.Buffer = ExAllocatePoolWithTag(PagedPool, GdiDriverInfo.DriverName.MaximumLength, TAG_DRIVER);
|
||||
RtlCopyUnicodeString(&DriverInfo->DriverName, &GdiDriverInfo.DriverName);
|
||||
DriverInfo->SectionPointer = GdiDriverInfo.SectionPointer;
|
||||
DriverInfo->BaseAddress = GdiDriverInfo.ImageAddress;
|
||||
|
|
|
@ -75,7 +75,7 @@ IntAddWindowToChain(PWINDOW_OBJECT window)
|
|||
{
|
||||
wce = WindowsChain;
|
||||
|
||||
wce = ExAllocatePool(PagedPool, sizeof(CLIPBOARDCHAINELEMENT));
|
||||
wce = ExAllocatePoolWithTag(PagedPool, sizeof(CLIPBOARDCHAINELEMENT), USERTAG_CLIPBOARD);
|
||||
if (wce == NULL)
|
||||
{
|
||||
SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY);
|
||||
|
@ -167,7 +167,7 @@ intAddFormatedData(UINT format, HANDLE hData, DWORD size)
|
|||
{
|
||||
PCLIPBOARDELEMENT ce = NULL;
|
||||
|
||||
ce = ExAllocatePool(PagedPool, sizeof(CLIPBOARDELEMENT));
|
||||
ce = ExAllocatePoolWithTag(PagedPool, sizeof(CLIPBOARDELEMENT), USERTAG_CLIPBOARD);
|
||||
if (ce == NULL)
|
||||
{
|
||||
SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY);
|
||||
|
@ -889,7 +889,7 @@ NtUserSetClipboardData(UINT uFormat, HANDLE hMem, DWORD size)
|
|||
|
||||
if (!canSinthesize(uFormat))
|
||||
{
|
||||
hCBData = ExAllocatePool(PagedPool, size);
|
||||
hCBData = ExAllocatePoolWithTag(PagedPool, size, USERTAG_CLIPBOARD);
|
||||
memcpy(hCBData, hMem, size);
|
||||
intAddFormatedData(uFormat, hCBData, size);
|
||||
DPRINT1("Data stored\n");
|
||||
|
@ -979,7 +979,7 @@ NtUserSetClipboardData(UINT uFormat, HANDLE hMem, DWORD size)
|
|||
|
||||
size = bi.bmiHeader.biSizeImage + sizeof(BITMAPINFOHEADER);
|
||||
|
||||
hCBData = ExAllocatePool(PagedPool, size);
|
||||
hCBData = ExAllocatePoolWithTag(PagedPool, size, USERTAG_CLIPBOARD);
|
||||
memcpy(hCBData, &bi, sizeof(BITMAPINFOHEADER));
|
||||
|
||||
ret = NtGdiGetDIBitsInternal(hdc, hMem, 0, bm.bmHeight, (LPBYTE)hCBData + sizeof(BITMAPINFOHEADER), &bi, DIB_RGB_COLORS, 0, 0);
|
||||
|
|
|
@ -560,7 +560,7 @@ NtUserEnumDisplayMonitors(
|
|||
}
|
||||
if (monitorRectList != NULL && listSize != 0)
|
||||
{
|
||||
safeRectList = ExAllocatePool(PagedPool, sizeof (RECT) * listSize);
|
||||
safeRectList = ExAllocatePoolWithTag(PagedPool, sizeof (RECT) * listSize, USERTAG_MONITORRECTS);
|
||||
if (safeRectList == NULL)
|
||||
{
|
||||
ExFreePool(safeHMonitorList);
|
||||
|
@ -845,7 +845,7 @@ NtUserMonitorFromRect(
|
|||
/* FIXME: SetLastWin32Error? */
|
||||
return (HMONITOR)NULL;
|
||||
}
|
||||
rectList = ExAllocatePool(PagedPool, sizeof (RECT) * numMonitors);
|
||||
rectList = ExAllocatePoolWithTag(PagedPool, sizeof (RECT) * numMonitors, USERTAG_MONITORRECTS);
|
||||
if (rectList == NULL)
|
||||
{
|
||||
ExFreePool(hMonitorList);
|
||||
|
|
|
@ -96,7 +96,7 @@ CleanupWindowStationImpl(VOID)
|
|||
BOOL FASTCALL
|
||||
IntSetupClipboard(PWINSTATION_OBJECT WinStaObj)
|
||||
{
|
||||
WinStaObj->Clipboard = ExAllocatePool(PagedPool, sizeof(CLIPBOARDSYSTEM));
|
||||
WinStaObj->Clipboard = ExAllocatePoolWithTag(PagedPool, sizeof(CLIPBOARDSYSTEM), TAG_WINSTA);
|
||||
if (WinStaObj->Clipboard)
|
||||
{
|
||||
RtlZeroMemory(WinStaObj->Clipboard, sizeof(CLIPBOARDSYSTEM));
|
||||
|
|
Loading…
Reference in a new issue