mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
[WIN32K]
* Handle allocation failure. svn path=/trunk/; revision=53937
This commit is contained in:
parent
6697e8cd41
commit
ec00096fc0
|
@ -200,7 +200,12 @@ POINT * FASTCALL GDI_Bezier( const POINT *Points, INT count, INT *nPtsOut )
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
*nPtsOut = 0;
|
*nPtsOut = 0;
|
||||||
|
|
||||||
out = ExAllocatePoolWithTag(PagedPool, dwOut * sizeof(POINT), TAG_BEZIER);
|
out = ExAllocatePoolWithTag(PagedPool, dwOut * sizeof(POINT), TAG_BEZIER);
|
||||||
|
if(!out) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
for(Bezier = 0; Bezier < (count-1)/3; Bezier++) {
|
for(Bezier = 0; Bezier < (count-1)/3; Bezier++) {
|
||||||
POINT ptBuf[4];
|
POINT ptBuf[4];
|
||||||
memcpy(ptBuf, Points + Bezier * 3, sizeof(POINT) * 4);
|
memcpy(ptBuf, Points + Bezier * 3, sizeof(POINT) * 4);
|
||||||
|
|
Loading…
Reference in a new issue