GME: Fix incorrect length reporting for VGM files, caused by an uninitialized variable.
parent
0078b0bccb
commit
dd5c25c125
|
@ -155,6 +155,7 @@ static void get_vgm_length( Vgm_Emu::header_t const& h, track_info_t* out )
|
||||||
int loop = h.lngLoopSamples;
|
int loop = h.lngLoopSamples;
|
||||||
if ( loop > 0 && h.lngLoopOffset )
|
if ( loop > 0 && h.lngLoopOffset )
|
||||||
{
|
{
|
||||||
|
out->length = 0;
|
||||||
out->loop_length = loop * 10 / 441;
|
out->loop_length = loop * 10 / 441;
|
||||||
out->intro_length = length - out->loop_length;
|
out->intro_length = length - out->loop_length;
|
||||||
check( out->loop_length <= length );
|
check( out->loop_length <= length );
|
||||||
|
|
|
@ -1479,7 +1479,6 @@ const char* GetChipName(UINT8 ChipID)
|
||||||
const char* GetAccurateChipName(UINT8 ChipID, UINT8 SubType)
|
const char* GetAccurateChipName(UINT8 ChipID, UINT8 SubType)
|
||||||
{
|
{
|
||||||
const char* RetStr;
|
const char* RetStr;
|
||||||
static char TempStr[0x10];
|
|
||||||
|
|
||||||
if ((ChipID & 0x7F) >= CHIP_COUNT)
|
if ((ChipID & 0x7F) >= CHIP_COUNT)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue