From eb85d6027c17fcf56765cd72a59aec59149497a7 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 16 Apr 2002 23:24:29 +0000 Subject: [PATCH] (construct_drag_n_drop): Decode file name before using. --- src/ChangeLog | 6 ++++++ src/w32term.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 473dc18101d..c82bf3f014c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-04-17 Jason Rumney + + * w32fns.c (Fx_file_dialog): Decode file name before using. + + * w32term.c (construct_drag_n_drop): Likewise. + 2002-04-16 Gerd Moellmann * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system diff --git a/src/w32term.c b/src/w32term.c index 235dd74585e..50ed23327ac 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -6255,7 +6255,7 @@ construct_drag_n_drop (result, msg, f) continue; name = alloca (len + 1); DragQueryFile (hdrop, i, name, len + 1); - files = Fcons (build_string (name), files); + files = Fcons (DECODE_FILE(build_string (name)), files); } DragFinish (hdrop); -- 2.39.2