diff src/dired-msw.c @ 2526:902d5bd9b75c

[xemacs-hg @ 2005-01-28 02:36:11 by ben] Support symlinks under Windows nt.c, fileio.c: Fix sync comments. config.h.in, dired-msw.c, emacs.c, event-msw.c, fileio.c, glyphs.c, lisp.h, nt.c, process-nt.c, realpath.c, sound.c, symsinit.h, sysdep.c, sysfile.h, syswindows.h, win32.c: Add support for treating shortcuts under Windows as symbolic links. Enabled with mswindows-shortcuts-are-links (t by default). Rewrite lots of places to use PATHNAME_CONVERT_OUT, which is moved to sysfile.h. Add PATHNAME_RESOLVE_LINKS, which only does things under Windows. Add profiling section for expand_file_name calls. nt.c, sysdep.c: Unicode-ize. realpath.c: Renamed from readlink_and_correct_case. Fix some problems with Windows implementation due to incorrect understanding of workings of the function. sound.c, ntplay.c, sound.h: Rename play_sound_file to nt_play_sound_file and pass internally-formatted data to it to avoid converting out and back again. text.h: is_c -> is_ascii.
author ben
date Fri, 28 Jan 2005 02:36:28 +0000
parents ab71ad6ff3dd
children 0d4c9d0f6a8d
line wrap: on
line diff
--- a/src/dired-msw.c	Fri Jan 28 02:05:05 2005 +0000
+++ b/src/dired-msw.c	Fri Jan 28 02:36:28 2005 +0000
@@ -192,7 +192,7 @@
   int findex;
   DECLARE_EISTRING (win32pattern);
   HANDLE fh;
-  int				errm;
+  int errm;
 
   while (1)
     {
@@ -206,8 +206,13 @@
       /* Now *bufp is the compiled form of PATTERN; don't call anything
 	 which might compile a new regexp until we're done with the loop! */
 
+      {
+	Ibyte *dir2;
+	LISP_PATHNAME_RESOLVE_LINKS (dirfile, dir2);
+	eicpy_rawz (win32pattern, dir2);
+      }
+
       /* for Win32, we need to insure that the pathname ends with "\*". */
-      eicpy_lstr (win32pattern, dirfile);
       if (!nowild)
 	{
 	  Charcount len = eicharlen (win32pattern) - 1;