aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorMiles Bader2008-04-23 05:55:42 +0000
committerMiles Bader2008-04-23 05:55:42 +0000
commita113b3ca322fd73d97d0d9d69c9f48dc13fb326a (patch)
tree37b3ad22a198a83f68738ef86aec187bb6d926d9 /src/w32.c
parente96a8d6dc0ffc35cf6c02924de2453c69fa8f6fe (diff)
parent81fe843b5a3cc7708e0800aeb5bc0dbe448e800a (diff)
downloademacs-a113b3ca322fd73d97d0d9d69c9f48dc13fb326a.tar.gz
emacs-a113b3ca322fd73d97d0d9d69c9f48dc13fb326a.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1121
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32.c b/src/w32.c
index a04de3032e1..25756087a63 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -110,6 +110,9 @@ void globals_of_w32 ();
110extern Lisp_Object Vw32_downcase_file_names; 110extern Lisp_Object Vw32_downcase_file_names;
111extern Lisp_Object Vw32_generate_fake_inodes; 111extern Lisp_Object Vw32_generate_fake_inodes;
112extern Lisp_Object Vw32_get_true_file_attributes; 112extern Lisp_Object Vw32_get_true_file_attributes;
113/* Defined in process.c for its own purpose. */
114extern Lisp_Object Qlocal;
115
113extern int w32_num_mouse_buttons; 116extern int w32_num_mouse_buttons;
114 117
115 118
@@ -2644,6 +2647,8 @@ stat (const char * path, struct stat * buf)
2644 } 2647 }
2645 2648
2646 if (!NILP (Vw32_get_true_file_attributes) 2649 if (!NILP (Vw32_get_true_file_attributes)
2650 && !(EQ (Vw32_get_true_file_attributes, Qlocal) &&
2651 GetDriveType (name) == DRIVE_FIXED)
2647 /* No access rights required to get info. */ 2652 /* No access rights required to get info. */
2648 && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, 2653 && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING,
2649 FILE_FLAG_BACKUP_SEMANTICS, NULL)) 2654 FILE_FLAG_BACKUP_SEMANTICS, NULL))