From d6f6e71efefc4b223dbb04f6e10d4ef99fa8c29e Mon Sep 17 00:00:00 2001 From: GetDizzy Date: Sat, 26 Jul 2025 22:10:56 -0400 Subject: [PATCH] Attempt to fix cdrom image loading crash. --- src/cdrom/cdrom_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdrom/cdrom_image.c b/src/cdrom/cdrom_image.c index 0e881e907..81fadb272 100644 --- a/src/cdrom/cdrom_image.c +++ b/src/cdrom/cdrom_image.c @@ -2655,7 +2655,7 @@ image_open(cdrom_t *dev, const char *path) if (ret > 0) { if (img->is_dvd == 2) { - uint32_t lb = dev->ops->get_last_block(img); + uint32_t lb = image_get_last_block(img); /* Should be safer than previous way of doing it? */ img->is_dvd = (lb >= 524287); /* Minimum 1 GB total capacity as threshold for DVD. */ }