dfranx / ImFileDialog

A file dialog library for Dear ImGui
MIT License
509 stars 57 forks source link

Use wchar_t for win32 usernames in order to support non-ASCII characters #13

Closed piernov closed 2 years ago

piernov commented 2 years ago

Using GetUserNameA with a username containing non-ASCII characters would cause a crash when calling u8path(). Use GetUserNameW and construct path from wchar_t for FileTreeNode constructor instead.

Based off the branch for #12 .

dfranx commented 2 years ago

Thanks! Merged