diff options
| author | Jamie Dennis <jdennis9@proton.me> | 2025-04-30 21:38:17 +1200 |
|---|---|---|
| committer | Jamie Dennis <jdennis9@proton.me> | 2025-04-30 21:38:17 +1200 |
| commit | ff0eac2a7154679fb9b59cc35459525d09eb4df7 (patch) | |
| tree | 4bc3bee4e9669256b1826a78562a8f96ee543f5c /core/os | |
| parent | 0de802d388051c752cfce8fdc07dddfa19b45bfe (diff) | |
os2: Use win32_wstring_to_utf8 over win32_utf16_to_utf8 when converting FIND_DATAW to File_Info
Diffstat (limited to 'core/os')
| -rw-r--r-- | core/os/os2/dir_windows.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os2/dir_windows.odin b/core/os/os2/dir_windows.odin index d592e8036..dc517a9e4 100644 --- a/core/os/os2/dir_windows.odin +++ b/core/os/os2/dir_windows.odin @@ -14,7 +14,7 @@ find_data_to_file_info :: proc(base_path: string, d: ^win32.WIN32_FIND_DATAW, al if d.cFileName[0] == '.' && d.cFileName[1] == '.' && d.cFileName[2] == 0 { return } - path := concatenate({base_path, `\`, win32_utf16_to_utf8(d.cFileName[:], temp_allocator()) or_else ""}, allocator) or_return + path := concatenate({base_path, `\`, win32_wstring_to_utf8(raw_data(d.cFileName[:]), temp_allocator()) or_else ""}, allocator) or_return handle := win32.HANDLE(_open_internal(path, {.Read}, 0o666) or_else 0) defer win32.CloseHandle(handle) |