mirror of
https://github.com/reactos/reactos.git
synced 2024-07-23 20:58:16 +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");
|
||||
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];
|
||||
|
|
Loading…
Reference in a new issue