| 118 | } |
| 119 | |
| 120 | static inline wchar_t *cbm_path_to_wide(const char *utf8_path) { |
| 121 | wchar_t *wide = cbm_utf8_to_wide(utf8_path); |
| 122 | wchar_t *extended = cbm_wide_path_to_extended(wide); |
| 123 | free(wide); |
| 124 | return extended; |
| 125 | } |
| 126 | |
| 127 | /* GetModuleFileNameW can preserve the \\?\ spelling used to launch a process. |
| 128 | * Internal UTF-8 paths use conventional DOS/UNC spelling and add the prefix |