Author: gschneider Date: Thu Jun 10 19:20:57 2010 New Revision: 47741
URL: http://svn.reactos.org/svn/reactos?rev=47741&view=rev Log: [WIN32K] Tag more pool allocations
Modified: trunk/reactos/subsystems/win32/win32k/ldr/loader.c trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c
Modified: trunk/reactos/subsystems/win32/win32k/ldr/loader.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ldr... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ldr/loader.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ldr/loader.c [iso-8859-1] Thu Jun 10 19:20:57 2010 @@ -222,10 +222,10 @@ 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;
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/clipboard.c [iso-8859-1] Thu Jun 10 19:20:57 2010 @@ -75,7 +75,7 @@ { 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 @@ { 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 @@
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 @@
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);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/monitor.c [iso-8859-1] Thu Jun 10 19:20:57 2010 @@ -560,7 +560,7 @@ } 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 @@ /* FIXME: SetLastWin32Error? */ return (HMONITOR)NULL; } - rectList = ExAllocatePool(PagedPool, sizeof (RECT) * numMonitors); + rectList = ExAllocatePoolWithTag(PagedPool, sizeof (RECT) * numMonitors, USERTAG_MONITORRECTS); if (rectList == NULL) { ExFreePool(hMonitorList);
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] Thu Jun 10 19:20:57 2010 @@ -96,7 +96,7 @@ 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));