mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
[WIN32K]
* Handle allocation failure. svn path=/trunk/; revision=53937
This commit is contained in:
parent
6697e8cd41
commit
ec00096fc0
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue