[ros-diffs] [fireball] 29400: - Don't allocate pool with a NULL tag, use ExAllocatePool instead.
fireball at svn.reactos.org
fireball at svn.reactos.org
Fri Oct 5 19:17:49 CEST 2007
Author: fireball
Date: Fri Oct 5 21:17:49 2007
New Revision: 29400
URL: http://svn.reactos.org/svn/reactos?rev=29400&view=rev
Log:
- Don't allocate pool with a NULL tag, use ExAllocatePool instead.
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c?rev=29400&r1=29399&r2=29400&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dd.c Fri Oct 5 21:17:49 2007
@@ -88,11 +88,11 @@
DPRINT1("Setup surface in put handler\n");
- myhSurface = ExAllocatePoolWithTag( PagedPool, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 0);
-
- _SEH_TRY
- {
- ProbeForRead(hSurface, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 1);
+ myhSurface = ExAllocatePool(PagedPool, CreateSurfaceData.dwSCnt * sizeof(HANDLE));
+
+ _SEH_TRY
+ {
+ ProbeForRead(hSurface, CreateSurfaceData.dwSCnt * sizeof(HANDLE), 1);
for (i=0;i<CreateSurfaceData.dwSCnt;i++)
{
myhSurface[i] = hSurface[i];
More information about the Ros-diffs
mailing list