diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-01-14 23:39:59 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-01-14 23:39:59 +0300 |
commit | 7eddac1bc503f29cd81bba336ad7e45a20ee0bef (patch) | |
tree | 90d754a285de2c960781a3e715c41680225aa1a9 /winsup/cygwin/fhandler.cc | |
parent | 55409319defa10e37a95cf3e3d60b7491fc79729 (diff) |
* 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/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index 21f4fb39c..a36ef0b13 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -1,6 +1,6 @@ /* fhandler.cc. See console.cc for fhandler_console functions. - Copyright 1996, 1997, 1998, 1999, 2000, 2001 Red Hat, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. This file is part of Cygwin. @@ -386,7 +386,7 @@ fhandler_base::open (path_conv *, int flags, mode_t mode) if (get_query_open () && isremote () && creation_distribution == OPEN_EXISTING && - GetFileAttributes (get_win32_name ()) == (DWORD) -1) + GetFileAttributes (get_win32_name ()) == INVALID_FILE_ATTRIBUTES) { set_errno (ENOENT); goto done; |