diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-05-04 23:35:51 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2012-05-04 23:35:51 +0000 |
commit | ea6e9d54915fc972bbc7a3de56cb5d2341e0d569 (patch) | |
tree | 93082b172b2b27fa513b720debaa2d4ed66e594f /Build/source/texk/kpathsea/win32lib.c | |
parent | 11e71d6cd5b3c84f48633fdabe07dde9b5d777dc (diff) |
rewrite xftell64 for W32
git-svn-id: svn://tug.org/texlive/trunk@26190 c570f23f-e606-0410-a88d-b1316a301751
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; } |