* Handle allocation failure.

svn path=/trunk/; revision=53937
This commit is contained in:
Amine Khaldi 2011-10-02 19:41:31 +00:00
parent 6697e8cd41
commit ec00096fc0

View file

@ -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);