diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-17 00:50:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-17 00:50:37 +0200 |
commit | 03fe36165b6767bc4e0d26bf1b1de38fdff3f75e (patch) | |
tree | d4145d918964b0b0f93e611de52220632113bfa8 /c/pl.cpp | |
parent | 605a3ff052defc3e41542204b0579e528d81ad72 (diff) | |
download | EpisodeBrowser-03fe36165b6767bc4e0d26bf1b1de38fdff3f75e.tar.gz |
Use SWI-Prolog's wide-character functions.
This avoids the use of TsmFromSz.
Diffstat (limited to 'c/pl.cpp')
-rw-r--r-- | c/pl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -37,10 +37,10 @@ int Query::NextSolution() int PL_get_tchars(term_t t, TCHAR **lpTsz, int iFlags) { #ifdef UNICODE - size_t sizLen; - if (!PL_get_wchars(t, &sizLen, lpTsz, iFlags)) + size_t len; + if (!PL_get_wchars(t, &len, lpTsz, iFlags)) return 0; - return sizLen; + return len; #else if (!PL_get_chars(t, lpTsz, iFlags)) return 0; |