From fbc4a2f453b86bf2281e00650ac08372149c9458 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 10 May 2008 07:56:42 +0000 Subject: [PATCH] (stat): Fix test of Vw32_get_true_file_attributes against the value returned by GetDriveType. --- src/w32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w32.c b/src/w32.c index 894160a275d..aa6c21e4402 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2491,9 +2491,9 @@ stat (const char * path, struct stat * buf) } } - 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)) -- 2.39.5