* 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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user