Skip to content

Commit 5178dda

Browse files
committed
Re add the mysteriously dissapearing bracket 😱
1 parent a0c2887 commit 5178dda

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/psiddrv/psid.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ int psid_load_file(uint8_t * binary_, size_t binsize_, int subtune)
171171
psid->version = psid_extract_word(&ptr);
172172

173173
if (psid->version < 1 || psid->version > 4) {
174+
MOSDBG("[PSID] Unknown PSID version number: %d.\n", (int)psid->version);
175+
goto fail;
176+
}
174177
MOSLOG("[PSID] PSID version number: %d.\n", (int)psid->version);
175178

176179
length = (unsigned int)((psid->version == 1 ? PSID_V1_DATA_OFFSET : PSID_V2_DATA_OFFSET) - 6);

0 commit comments

Comments
 (0)