From: Eli Zaretskii Date: Wed, 11 Dec 2013 17:17:49 +0000 (+0200) Subject: One more change by Ken Brown to avoid breaking Cygwin. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~446^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=893fcd38e9ef6bcb50dd9e9ed1de7caf194f8a83;p=emacs.git One more change by Ken Brown to avoid breaking Cygwin. --- diff --git a/src/w32fns.c b/src/w32fns.c index 99a2c4bdaf2..e5d899d8a15 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -6668,7 +6668,10 @@ Otherwise, if ONLY-DIR-P is non-nil, the user can only select directories. */) /* Strip the dummy filename off the end of the string if we added it to select a directory. */ if (use_unicode && file_details_w->nFilterIndex == 2 - || !use_unicode && file_details_a->nFilterIndex == 2) +#ifndef NTGUI_UNICODE + || !use_unicode && file_details_a->nFilterIndex == 2 +#endif + ) filename = Ffile_name_directory (filename); } /* User canceled the dialog without making a selection. */