mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
32 lines
582 B
C++
32 lines
582 B
C++
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Kernel Streaming
|
|
* FILE: drivers/wdm/audio/backpln/portcls/pool.cpp
|
|
* PURPOSE: Memory functions
|
|
* PROGRAMMER: Johannes Anderwald
|
|
*/
|
|
|
|
#include "private.hpp"
|
|
|
|
#ifndef YDEBUG
|
|
#define NDEBUG
|
|
#endif
|
|
#include <debug.h>
|
|
|
|
PVOID
|
|
AllocateItem(
|
|
IN POOL_TYPE PoolType,
|
|
IN SIZE_T NumberOfBytes,
|
|
IN ULONG Tag)
|
|
{
|
|
return ExAllocatePoolZero(PoolType, NumberOfBytes, Tag);
|
|
}
|
|
|
|
VOID
|
|
FreeItem(
|
|
IN PVOID Item,
|
|
IN ULONG Tag)
|
|
{
|
|
ExFreePoolWithTag(Item, Tag);
|
|
}
|