diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-01 15:26:37 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-01 15:26:37 +0000 |
commit | d1f96f6033d08c0e712307ddc9bc1f63a8540742 (patch) | |
tree | 83ef3cb926b8fe2d6759170d6eb5e1f3a6c65986 /Build/source/texk/kpathsea/readable.c | |
parent | b91ea14a043007a08ec25199870aa0a3a3fbbc1f (diff) |
Revert
git-svn-id: svn://tug.org/texlive/trunk@32289 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/readable.c')
-rw-r--r-- | Build/source/texk/kpathsea/readable.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/readable.c b/Build/source/texk/kpathsea/readable.c index 181b80c3b87..d62957e5ba0 100644 --- a/Build/source/texk/kpathsea/readable.c +++ b/Build/source/texk/kpathsea/readable.c @@ -40,9 +40,7 @@ static boolean READABLE(const_string fn, unsigned int st) { - wchar_t *fnw; - fnw = get_wstring_from_fsyscp(fn, fnw=NULL); - if ((st = GetFileAttributesW(fnw)) != 0xFFFFFFFF) { + if ((st = GetFileAttributes(fn)) != 0xFFFFFFFF) { /* succeeded */ errno = 0; } else { @@ -58,7 +56,6 @@ READABLE(const_string fn, unsigned int st) break; } } - free(fnw); return ((st != 0xFFFFFFFF) && !(st & FILE_ATTRIBUTE_DIRECTORY)); } |