mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Windows: add filename_to_wstr().
The wide-string version of filename_to_str(): given a Filename, return a reference to its contained wchar_t string form.
This commit is contained in:
@ -47,6 +47,11 @@ const char *filename_to_str(const Filename *fn)
|
||||
return fn->cpath; /* FIXME */
|
||||
}
|
||||
|
||||
const wchar_t *filename_to_wstr(const Filename *fn)
|
||||
{
|
||||
return fn->wpath;
|
||||
}
|
||||
|
||||
bool filename_equal(const Filename *f1, const Filename *f2)
|
||||
{
|
||||
/* wpath is primary: two filenames refer to the same file if they
|
||||
|
Reference in New Issue
Block a user