mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Allocate the memory from paged pool instead of non-paged pool as almost all code (and none of the font code) in Win32k runs at IRQL < DISPATCH_LEVEL.
svn path=/trunk/; revision=11697
This commit is contained in:
parent
f5912089d2
commit
c145b0b293
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: rosglue.c,v 1.2 2003/04/01 17:14:36 gvg Exp $
|
/* $Id: rosglue.c,v 1.3 2004/11/18 22:22:46 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: FreeType implementation for ReactOS
|
* PROJECT: FreeType implementation for ReactOS
|
||||||
|
@ -84,7 +84,7 @@ malloc(size_t Size)
|
||||||
{
|
{
|
||||||
void *Object;
|
void *Object;
|
||||||
|
|
||||||
Object = ExAllocatePoolWithTag(NonPagedPool, sizeof(size_t) + Size, TAG_FREETYPE);
|
Object = ExAllocatePoolWithTag(PagedPool, sizeof(size_t) + Size, TAG_FREETYPE);
|
||||||
if (NULL != Object)
|
if (NULL != Object)
|
||||||
{
|
{
|
||||||
*((size_t *) Object) = Size;
|
*((size_t *) Object) = Size;
|
||||||
|
@ -100,7 +100,7 @@ realloc(void *Object, size_t Size)
|
||||||
void *NewObject;
|
void *NewObject;
|
||||||
size_t CopySize;
|
size_t CopySize;
|
||||||
|
|
||||||
NewObject = ExAllocatePoolWithTag(NonPagedPool, sizeof(size_t) + Size, TAG_FREETYPE);
|
NewObject = ExAllocatePoolWithTag(PagedPool, sizeof(size_t) + Size, TAG_FREETYPE);
|
||||||
if (NULL != NewObject)
|
if (NULL != NewObject)
|
||||||
{
|
{
|
||||||
*((size_t *) NewObject) = Size;
|
*((size_t *) NewObject) = Size;
|
||||||
|
|
Loading…
Reference in a new issue