mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
* src/w32fns.c (process_dropfiles): Fix cygw32 build (bug#74312).
This commit is contained in:
parent
1704fa4fb4
commit
6ddbe8c701
14
src/w32fns.c
14
src/w32fns.c
@ -2479,9 +2479,22 @@ static Lisp_Object
|
|||||||
process_dropfiles (DROPFILES *files)
|
process_dropfiles (DROPFILES *files)
|
||||||
{
|
{
|
||||||
char *start_of_files = (char *) files + files->pFiles;
|
char *start_of_files = (char *) files + files->pFiles;
|
||||||
|
#ifndef NTGUI_UNICODE
|
||||||
char filename[MAX_UTF8_PATH];
|
char filename[MAX_UTF8_PATH];
|
||||||
|
#endif
|
||||||
Lisp_Object lisp_files = Qnil;
|
Lisp_Object lisp_files = Qnil;
|
||||||
|
|
||||||
|
#ifdef NTGUI_UNICODE
|
||||||
|
WCHAR *p = (WCHAR *) start_of_files;
|
||||||
|
for (; *p; p += wcslen (p) + 1)
|
||||||
|
{
|
||||||
|
Lisp_Object fn = from_unicode_buffer (p);
|
||||||
|
#ifdef CYGWIN
|
||||||
|
fn = Fcygwin_convert_file_name_to_windows (fn, Qt);
|
||||||
|
#endif
|
||||||
|
lisp_files = Fcons (fn, lisp_files);
|
||||||
|
}
|
||||||
|
#else
|
||||||
if (files->fWide)
|
if (files->fWide)
|
||||||
{
|
{
|
||||||
WCHAR *p = (WCHAR *) start_of_files;
|
WCHAR *p = (WCHAR *) start_of_files;
|
||||||
@ -2502,6 +2515,7 @@ process_dropfiles (DROPFILES *files)
|
|||||||
lisp_files);
|
lisp_files);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return lisp_files;
|
return lisp_files;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user