This commit is contained in:
anod 2023-03-11 23:54:07 +08:00
parent e40a728a4b
commit 0d33263e15

View File

@ -172,8 +172,9 @@ static int32_t bin_search( FHandle fd, acl_text_t game )
start = mid + 1;
}
else end = mid - 1;
}log("1");
free( serials );log("2");
}log("before free");
free( serials );
log("after free");
return found < 0 ? -ACHTLIB_NOT_FOUND : found;
}
@ -195,10 +196,10 @@ acl_error_t acl_select_game( acl_text_t game, acl_boolean_t filter, acl_count_t
fClose( fd );
return index * -1;
}
log("3");
uint32_t offset = ACL_HEADER_LEN + ACL_SERIAL_LEN(inst->serc);
offset += ACL_INDEX_OFFSET(index);
log("4");
uint32_t readed;
uint16_t groups[2];
if( RES_OK != fLseek(fd, offset) )