mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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
|
#ifdef HAVE_LIBRETRODB
|
||||||
libretrodb_t db;
|
libretrodb_t db;
|
||||||
libretrodb_cursor_t cur;
|
libretrodb_cursor_t cur;
|
||||||
|
|
||||||
if ((libretrodb_open(path, &db)) != 0)
|
if ((libretrodb_open(path, &db)) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
if ((database_open_cursor(&db, &cur, query) != 0))
|
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;
|
str_len += strlen(label) + 1;
|
||||||
string_list_append(str_list, label, attr);
|
string_list_append(str_list, label, attr);
|
||||||
|
|
||||||
str_len += sizeof(actual_int);
|
|
||||||
snprintf(str, sizeof(str), "%d", actual_int);
|
snprintf(str, sizeof(str), "%d", actual_int);
|
||||||
|
str_len += strlen(str) + 1;
|
||||||
string_list_append(str_list, str, attr);
|
string_list_append(str_list, str, attr);
|
||||||
|
|
||||||
str_len += strlen(path) + 1;
|
str_len += strlen(path) + 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user