mirror of
https://github.com/reactos/reactos.git
synced 2024-10-16 06:04:13 +00:00
- Don't allocate pool with a NULL tag, use ExAllocatePool instead.
svn path=/trunk/; revision=29400
This commit is contained in:
parent
7b9b1a8536
commit
8206cd0b71
|
@ -88,11 +88,11 @@ DWORD STDCALL NtGdiDdCreateSurface(
|
||||||
|
|
||||||
|
|
||||||
DPRINT1("Setup surface in put handler\n");
|
DPRINT1("Setup surface in put handler\n");
|
||||||
myhSurface = ExAllocatePoolWithTag( PagedPool, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 0);
|
myhSurface = ExAllocatePool(PagedPool, CreateSurfaceData.dwSCnt * sizeof(HANDLE));
|
||||||
|
|
||||||
_SEH_TRY
|
_SEH_TRY
|
||||||
{
|
{
|
||||||
ProbeForRead(hSurface, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 1);
|
ProbeForRead(hSurface, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 1);
|
||||||
for (i=0;i<CreateSurfaceData.dwSCnt;i++)
|
for (i=0;i<CreateSurfaceData.dwSCnt;i++)
|
||||||
{
|
{
|
||||||
myhSurface[i] = hSurface[i];
|
myhSurface[i] = hSurface[i];
|
||||||
|
|
Loading…
Reference in a new issue