aboutsummaryrefslogtreecommitdiff
path: root/c/pl.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 00:50:37 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 00:50:37 +0200
commit03fe36165b6767bc4e0d26bf1b1de38fdff3f75e (patch)
treed4145d918964b0b0f93e611de52220632113bfa8 /c/pl.cpp
parent605a3ff052defc3e41542204b0579e528d81ad72 (diff)
downloadEpisodeBrowser-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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/pl.cpp b/c/pl.cpp
index c944547..21253ba 100644
--- a/c/pl.cpp
+++ b/c/pl.cpp
@@ -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;