mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
f8e1a2b3a9
This centralises into windows/utils/request_file.c all of the code that deals with the OPENFILENAME structure, and decides centrally whether to use the Unicode or ANSI version of that structure and its associated APIs. Now the output of any request_file function is our own 'Filename' abstract type, instead of a raw char or wchar_t buffer, which means that _any_ file dialog can produce a full Unicode filename if the user wants to select one - and yet, in the w32old build, they all uniformly fall back to the ANSI version, which is the only one that works at all pre-NT. A side effect: I've turned the FILTER_FOO_FILES family of definitions from platform-specific #defines into a reasonably sensible enum. This didn't affect the GTK side of things , because I'd never got round to figuring out how to filter a file dialog down to a subset of files in GTK, and still haven't. So I've just moved the existing FIXME comment from platform.h to dialog.c. |
||
---|---|---|
.. | ||
agent_mutex_name.c | ||
agent_named_pipe_name.c | ||
arm_arch_queries.c | ||
aux_match_opt.c | ||
centre_window.c | ||
cmdline_arg.c | ||
cryptoapi.c | ||
defaults.c | ||
dll_hijacking_protection.c | ||
dputs.c | ||
escape_registry_key.c | ||
filename.c | ||
fontspec.c | ||
get_system_dir.c | ||
get_username.c | ||
getdlgitemtext_alloc.c | ||
gui-timing.c | ||
interprocess_mutex.c | ||
is_console_handle.c | ||
load_system32_dll.c | ||
ltime.c | ||
make_spr_sw_abort_winerror.c | ||
makedlgitemborderless.c | ||
message_box.c | ||
minefield.c | ||
open_for_write_would_lose_data.c | ||
pgp_fingerprints_msgbox.c | ||
platform_get_x_display.c | ||
registry.c | ||
request_file.c | ||
screenshot.c | ||
security.c | ||
shinydialogbox.c | ||
split_into_argv_w.c | ||
split_into_argv.c | ||
strtoumax.c | ||
version.c | ||
win_strerror.c |