mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-04 16:38:55 +00:00
Fixed invalid memory reads, this helps thinker1 demo
svn-id: r19156
This commit is contained in:
parent
be8cd9e69a
commit
953b35a8c3
@ -1765,9 +1765,11 @@ void ScummEngine_v72he::o72_openFile() {
|
||||
// There are Macintosh specific versions of HE7.2 games.
|
||||
if (_heversion >= 80 && _substResFileNameIndex > 0) {
|
||||
char buf1[128];
|
||||
|
||||
buf1[0] = '\0';
|
||||
generateSubstResFileName((char *)filename, buf1, sizeof(buf1));
|
||||
strcpy((char *)filename, buf1);
|
||||
if (buf1[0]) {
|
||||
strcpy((char *)filename, buf1);
|
||||
}
|
||||
}
|
||||
|
||||
int r = convertFilePath(filename);
|
||||
|
Loading…
Reference in New Issue
Block a user