mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fix releaseyear queries giving empty result sets.
This commit is contained in:
parent
3f46f97abd
commit
2ec829ebc1
@ -27,7 +27,7 @@ int menu_database_populate_query(file_list_t *list, const char *path,
|
||||
#ifdef HAVE_LIBRETRODB
|
||||
libretrodb_t db;
|
||||
libretrodb_cursor_t cur;
|
||||
|
||||
|
||||
if ((libretrodb_open(path, &db)) != 0)
|
||||
return -1;
|
||||
if ((database_open_cursor(&db, &cur, query) != 0))
|
||||
|
@ -853,8 +853,8 @@ static uint32_t create_string_list_rdb_entry_int(const char *desc, const char *l
|
||||
str_len += strlen(label) + 1;
|
||||
string_list_append(str_list, label, attr);
|
||||
|
||||
str_len += sizeof(actual_int);
|
||||
snprintf(str, sizeof(str), "%d", actual_int);
|
||||
str_len += strlen(str) + 1;
|
||||
string_list_append(str_list, str, attr);
|
||||
|
||||
str_len += strlen(path) + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user