Use hunksize from chd instead of header constant
This commit is contained in:
@@ -264,7 +264,7 @@ int pcecdd_t::Load(const char *filename)
|
||||
this->chd_hunkbuf = NULL;
|
||||
}
|
||||
|
||||
this->chd_hunkbuf = (uint8_t *)malloc(CD_FRAME_SIZE * CD_FRAMES_PER_HUNK);
|
||||
this->chd_hunkbuf = (uint8_t *)malloc(this->toc.chd_hunksize);
|
||||
this->chd_hunknum = -1;
|
||||
} else {
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user