Author: akhaldi
Date: Sun Oct 2 19:41:31 2011
New Revision: 53937
URL:
http://svn.reactos.org/svn/reactos?rev=53937&view=rev
Log:
[WIN32K]
* Handle allocation failure.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/bezier.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/bezier.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/bezier.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/bezier.c [iso-8859-1] Sun Oct 2
19:41:31 2011
@@ -200,7 +200,12 @@
return NULL;
}
*nPtsOut = 0;
+
out = ExAllocatePoolWithTag(PagedPool, dwOut * sizeof(POINT), TAG_BEZIER);
+ if(!out) {
+ return NULL;
+ }
+
for(Bezier = 0; Bezier < (count-1)/3; Bezier++) {
POINT ptBuf[4];
memcpy(ptBuf, Points + Bezier * 3, sizeof(POINT) * 4);