fix assert on converting internal name from ANSI to wchar
This commit is contained in:
parent
0a2895f7d8
commit
8e912cb229
|
@ -1732,7 +1732,14 @@ void CALL RomOpen (void)
|
||||||
|
|
||||||
// get the name of the ROM
|
// get the name of the ROM
|
||||||
for (int i=0; i<20; i++)
|
for (int i=0; i<20; i++)
|
||||||
|
{
|
||||||
name[i] = gfx.HEADER[(32+i)^3];
|
name[i] = gfx.HEADER[(32+i)^3];
|
||||||
|
if (name[i] >= 0x80)
|
||||||
|
{
|
||||||
|
name[i] = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
name[20] = 0;
|
name[20] = 0;
|
||||||
|
|
||||||
// remove all trailing spaces
|
// remove all trailing spaces
|
||||||
|
|
Loading…
Reference in New Issue