+2005-05-21 Kenichi Handa <handa@m17n.org>
+
+ * src/otfopen.c (OTF_get_features): If table_info doesn't have
+ stream nor address, return -1.
+
2005-05-19 Kenichi Handa <handa@m17n.org>
* src/otf.h (OTF_get_scripts, OTF_get_features,
OTF_READ_FULL,
OTF_READ_SCRIPTS,
OTF_READ_FEATURES,
- OTF_READ_MAX,
+ OTF_READ_MAX
};
struct _OTF_TableInfo;
if (! table_info->reader)
return -1;
if (! table_info->stream)
- /* Already fully loaded. */
- return 0;
+ {
+ if (*table_info->address)
+ /* Already fully loaded. */
+ return 0;
+ return -1;
+ }
address = (*table_info->reader) (otf, table_info, OTF_READ_FEATURES);
if (! address)