diff options
| author | MatthiasWM <visualc.git@matthiasm.com> | 2024-12-21 12:14:31 -0600 |
|---|---|---|
| committer | MatthiasWM <visualc.git@matthiasm.com> | 2024-12-21 12:14:31 -0600 |
| commit | 4d8a0df31227fb3558b6976e63a29e22e78163cb (patch) | |
| tree | 9b1ef0a8fb5598098232da952f2dcfa5586e360b /fluid | |
| parent | 1f25ee82b02283d6b1d839d364c0c095356d57f2 (diff) | |
FLUID: Improve path handling on Windows.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 9f20843f7..75bddd39e 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1981,6 +1981,14 @@ void update_history(const char *flname) { if (max_files > 10) max_files = 10; fl_filename_absolute(absolute, sizeof(absolute), flname); +#ifdef _WIN32 + // Make path canonical. + for (char *s = absolute; *s; s++) { + if (*s == '\\') + *s = '/'; + } +#endif + for (i = 0; i < max_files; i ++) #if defined(_WIN32) || defined(__APPLE__) |
