diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-01-14 20:39:59 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-01-14 20:39:59 +0000 |
commit | 7eddac1bc503f29cd81bba336ad7e45a20ee0bef (patch) | |
tree | 90d754a285de2c960781a3e715c41680225aa1a9 /winsup/cygwin/dir.cc | |
parent | 55409319defa10e37a95cf3e3d60b7491fc79729 (diff) | |
download | cygnal-7eddac1bc503f29cd81bba336ad7e45a20ee0bef.tar.gz cygnal-7eddac1bc503f29cd81bba336ad7e45a20ee0bef.tar.bz2 cygnal-7eddac1bc503f29cd81bba336ad7e45a20ee0bef.zip |
* dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1"
for file attributes throughout.
* fhandler.cc: Ditto.
* fhandler_disk_file.cc: Ditto.
* path.cc: Ditto.
* path.h: Ditto.
* syscalls.cc: Ditto.
* times.cc (utimes): Use path_conv::isdir() instead of explicit
GetFileAttributes() call.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r-- | winsup/cygwin/dir.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index 086645a8a..1134c45e0 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -260,7 +260,7 @@ rmdir (const char *dir) /* RemoveDirectory on a samba drive doesn't return an error if the directory can't be removed because it's not empty. Checking for existence afterwards keeps us informed about success. */ - if (GetFileAttributes (real_dir) != (DWORD) -1) + if (GetFileAttributes (real_dir) != INVALID_FILE_ATTRIBUTES) set_errno (ENOTEMPTY); else res = 0; |