summaryrefslogtreecommitdiffstats
path: root/PC/getpathp.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r--PC/getpathp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index e2beec1..669ed9f 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -117,8 +117,7 @@ reduce(wchar_t *dir)
static int
exists(wchar_t *filename)
{
- struct _stat64 buf;
- return _wstat64(filename, &buf) == 0;
+ return GetFileAttributesW(filename) != 0xFFFFFFFF;
}
/* Assumes 'filename' MAXPATHLEN+1 bytes long -