- Don't allocate pool with a NULL tag, use ExAllocatePool instead.

svn path=/trunk/; revision=29400
This commit is contained in:
Aleksey Bragin 2007-10-05 17:17:49 +00:00
parent 7b9b1a8536
commit 8206cd0b71

View file

@ -88,11 +88,11 @@ DWORD STDCALL NtGdiDdCreateSurface(
DPRINT1("Setup surface in put handler\n");
myhSurface = ExAllocatePoolWithTag( PagedPool, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 0);
myhSurface = ExAllocatePool(PagedPool, CreateSurfaceData.dwSCnt * sizeof(HANDLE));
_SEH_TRY
{
ProbeForRead(hSurface, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 1);
ProbeForRead(hSurface, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 1);
for (i=0;i<CreateSurfaceData.dwSCnt;i++)
{
myhSurface[i] = hSurface[i];