diff options
Diffstat (limited to 'Build/source/texk/kpathsea/win32lib.c')
-rw-r--r-- | Build/source/texk/kpathsea/win32lib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/win32lib.c b/Build/source/texk/kpathsea/win32lib.c index 6a346ebfdde..e572d813dd3 100644 --- a/Build/source/texk/kpathsea/win32lib.c +++ b/Build/source/texk/kpathsea/win32lib.c @@ -294,7 +294,10 @@ xftell64 (FILE *f, const char *filename) FATAL_PERROR(filename); return (__int64)(-1); } - where = filepos - f->_cnt; + if(filepos == (__int64)0) + where = (__int64)(f->_ptr - f->_base); + else + where = filepos - f->_cnt; return where; } |