From ec00096fc0bd9c8600edf1aba6004886ed16d118 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 2 Oct 2011 19:41:31 +0000 Subject: [PATCH] [WIN32K] * Handle allocation failure. svn path=/trunk/; revision=53937 --- reactos/subsystems/win32/win32k/objects/bezier.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/subsystems/win32/win32k/objects/bezier.c b/reactos/subsystems/win32/win32k/objects/bezier.c index 855d72cf5de..20590f6f717 100644 --- a/reactos/subsystems/win32/win32k/objects/bezier.c +++ b/reactos/subsystems/win32/win32k/objects/bezier.c @@ -200,7 +200,12 @@ POINT * FASTCALL GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut ) 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);