diff options
Diffstat (limited to 'c/datalistview.cpp')
-rw-r--r-- | c/datalistview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp index 661a68e..9c13ae8 100644 --- a/c/datalistview.cpp +++ b/c/datalistview.cpp @@ -34,7 +34,7 @@ void DataListView::ShowEpisode(int iEpisode) lviValue.mask = LVIF_TEXT; term_t t = PL_new_term_refs(3); - if (!Plp(t,"I",iEpisode)) return; + if (!PL_put_integer(t,iEpisode)) return; qid_t q = PL_open_query(NULL, PL_Q_NORMAL, PL_predicate("episode_datum", 3, "episode_data"), t); @@ -43,7 +43,8 @@ void DataListView::ShowEpisode(int iEpisode) char *szValue; TCHAR *tszKey, *tszValue; - if (!Plg(t+1,"ss",&szKey,&szValue)) continue; + if (!(PL_get_atom_chars(t+1,&szKey) && PL_get_atom_chars(t+2,&szValue))) + continue; tszKey = TszFromSz(szKey, CP_UTF8); if (!tszKey) continue; |