Updated to handle UMX archives with empty type specifier.

CQTexperiment
Christopher Snowhill 2016-12-22 20:42:06 -08:00
parent 5959e6cb69
commit 31a0f9155c
1 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ void * unpackUmx( const void * in, long * size )
if (classname && !strcmp(pkg.oclassname(i), "Music"))
{
char * type = pkg.otype(i);
if (!type) continue;
if (!strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm"))
if (!type || !strcasecmp(type, "it") || !strcasecmp(type, "s3m") || !strcasecmp(type, "xm"))
{
*size = pkg.object_size(i);
void * ret = malloc( *size );