|
|
|
@ -7,11 +7,12 @@ |
|
|
|
|
|
|
|
|
|
* src/base/ftmac.c (FT_New_Face_From_SFNT): Check the sfnt resource |
|
|
|
|
handle by its value instead of ResError(), fix provided by Deron |
|
|
|
|
Kazmaier. According to Resource Manager Reference, GetResource(), |
|
|
|
|
Get1Resource(), GetNamedResource(), Get1NamedResource() |
|
|
|
|
and RGetResource() set noErr but returns NULL handle when they can |
|
|
|
|
not find requested resource. These functions never return undefined |
|
|
|
|
values, so it is sufficient to check if the handle is not NULL. |
|
|
|
|
Kazmaier. According to the Resource Manager Reference, |
|
|
|
|
GetResource(), Get1Resource(), GetNamedResource(), |
|
|
|
|
Get1NamedResource() and RGetResource() set noErr but return NULL |
|
|
|
|
handle when they can not find the requested resource. These |
|
|
|
|
functions never return undefined values, so it is sufficient to |
|
|
|
|
check if the handle is not NULL. |
|
|
|
|
|
|
|
|
|
* builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto. |
|
|
|
|
|
|
|
|
|