diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-13 01:09:34 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-06-13 01:09:34 (GMT) |
commit | 3d17a5c5aec27ad483f68f36855ee9761181857f (patch) | |
tree | fb85759d072a4deb86b2460d9de5fec69b0a2a0a /PC/getpathp.c | |
parent | e68df0fbe51fc6980d48265e85664341f74fc9eb (diff) | |
download | cpython-3d17a5c5aec27ad483f68f36855ee9761181857f.zip cpython-3d17a5c5aec27ad483f68f36855ee9761181857f.tar.gz cpython-3d17a5c5aec27ad483f68f36855ee9761181857f.tar.bz2 |
Merged revisions 64214 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r64214 | amaury.forgeotdarc | 2008-06-13 02:42:22 +0200 (ven., 13 juin 2008) | 6 lines
Restore support for Microsoft VC6 compiler.
Some functions in the msvcrt module are skipped,
and socket.ioctl is enabled only when using a more recent Platform SDK.
(and yes, there are still companies that use a 10-years old compiler)
........
Diffstat (limited to 'PC/getpathp.c')
-rw-r--r-- | PC/getpathp.c | 3 |
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 - |