Fix OS3 build

This commit is contained in:
Chris Young 2015-08-17 17:44:27 +01:00
parent 9b222fdeb6
commit 528fce7262

View File

@ -33,6 +33,7 @@
#include <proto/dos.h> #include <proto/dos.h>
#include <proto/utility.h> #include <proto/utility.h>
#include <diskfont/diskfont.h>
#include <diskfont/diskfonttag.h> #include <diskfont/diskfonttag.h>
#include <intuition/gadgetclass.h> #include <intuition/gadgetclass.h>
@ -68,7 +69,7 @@ struct OutlineFont *OpenOutlineFont(STRPTR fileName, struct List *list, ULONG fl
return NULL; return NULL;
} }
if(Read(fh, &magic, sizeof(struct FontContentsHeader)) != sizeof(struct FontContentsHeader)) { if(Read(fh, &fch, sizeof(struct FontContentsHeader)) != sizeof(struct FontContentsHeader)) {
LOG("Unable to read FONT %s", fontpath); LOG("Unable to read FONT %s", fontpath);
FreeVec(fontpath); FreeVec(fontpath);
Close(fh); Close(fh);