changeset 80563:58df3fdb731c

(stat): Fix test of Vw32_get_true_file_attributes against the value returned by GetDriveType.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 May 2008 07:56:42 +0000
parents 9470a874f1b8
children 8ebcb7d5eba2
files src/w32.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32.c	Thu May 08 21:41:03 2008 +0000
+++ b/src/w32.c	Sat May 10 07:56:42 2008 +0000
@@ -2491,9 +2491,9 @@
 	}
     }
 
-  if (!NILP (Vw32_get_true_file_attributes)
-      && !(EQ (Vw32_get_true_file_attributes, Qlocal) && 
-	   GetDriveType (name) == DRIVE_FIXED)
+  if (!(NILP (Vw32_get_true_file_attributes)
+	|| (EQ (Vw32_get_true_file_attributes, Qlocal) &&
+	    GetDriveType (name) != DRIVE_FIXED))
       /* No access rights required to get info.  */
       && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING,
 			   FILE_FLAG_BACKUP_SEMANTICS, NULL))