1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 20:06:40 +00:00

Fix latest commit

This commit is contained in:
TuxSH 2018-05-17 02:07:11 +02:00
parent 52d2af86b6
commit 85bfbeccc3

View file

@ -34,13 +34,13 @@ int package1_read_and_parse_boot0(void **package1loader, size_t *package1loader_
free(bct);
return -1;
}
if (bct->bootloader_used < 1) {
if (bct->bootloader_used < 1 || pk1l_info->version < 1) {
free(bct);
errno = EILSEQ;
return -1;
}
*revision = pk1l_info->version;
*revision = pk1l_info->version - 1;
*package1loader_size = pk1l_info->length;
pk1l_offset = 0x4000 * pk1l_info->start_blk + 0x200 * pk1l_info->start_page;