Permalink
Browse files

Support of non-standart header size (not 0x114).

  • Loading branch information...
1 parent 5859601 commit f79003706fc73bb50ce247ebdc0d6e1f415bda55 denis111 committed Feb 29, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 loaders/load_xm.c
View
@@ -20,7 +20,7 @@
/*==============================================================================
- $Id: load_xm.c,v 1.4 2007/12/03 20:35:43 denis111 Exp $
+ $Id: load_xm.c,v 1.5 2008/02/29 18:49:03 denis111 Exp $
Fasttracker (XM) module loader
@@ -687,7 +687,7 @@ BOOL XM_Load(BOOL curious)
_mm_errno=MMERR_NOT_A_MODULE;
return 0;
}
- _mm_read_UBYTES(mh->orders,256,modreader);
+ _mm_read_UBYTES(mh->orders,mh->headersize-20,modreader);
if(_mm_eof(modreader)) {
_mm_errno = MMERR_LOADING_HEADER;

0 comments on commit f790037

Please sign in to comment.