mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Corrected error code
Co-authored-by: nulano <nulano@nulano.eu>
This commit is contained in:
parent
8f3ccff8f2
commit
538971532d
|
@ -189,7 +189,7 @@ getfont(PyObject *self_, PyObject *args, PyObject *kw) {
|
|||
/* Don't free this before FT_Done_Face */
|
||||
self->font_bytes = PyMem_Malloc(font_bytes_size);
|
||||
if (!self->font_bytes) {
|
||||
error = 65; // Out of Memory in Freetype.
|
||||
error = FT_Err_Out_Of_Memory;
|
||||
}
|
||||
if (!error) {
|
||||
memcpy(self->font_bytes, font_bytes, (size_t)font_bytes_size);
|
||||
|
|
Loading…
Reference in New Issue
Block a user