GME: Fix incorrect length reporting for VGM files, caused by an uninitialized variable.

CQTexperiment
Chris Moeller 2016-02-10 17:52:28 -08:00
parent 0078b0bccb
commit dd5c25c125
2 changed files with 1 additions and 1 deletions

View File

@ -155,6 +155,7 @@ static void get_vgm_length( Vgm_Emu::header_t const& h, track_info_t* out )
int loop = h.lngLoopSamples;
if ( loop > 0 && h.lngLoopOffset )
{
out->length = 0;
out->loop_length = loop * 10 / 441;
out->intro_length = length - out->loop_length;
check( out->loop_length <= length );

View File

@ -1479,7 +1479,6 @@ const char* GetChipName(UINT8 ChipID)
const char* GetAccurateChipName(UINT8 ChipID, UINT8 SubType)
{
const char* RetStr;
static char TempStr[0x10];
if ((ChipID & 0x7F) >= CHIP_COUNT)
return NULL;