[ros-diffs] [akhaldi] 53937: [WIN32K] * Handle allocation failure.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sun Oct 2 19:41:32 UTC 2011


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/objects/bezier.c?rev=53937&r1=53936&r2=53937&view=diff
==============================================================================
--- 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);




More information about the Ros-diffs mailing list