diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-02 12:20:35 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-02 12:20:35 +0100 |
| commit | bb4bc316a4bd86774953f1e8fcefffb5ed8bbf37 (patch) | |
| tree | bd48bf739dd69c0bc6578fb2a69cc5823ddee6f8 /core/path | |
| parent | ae02d3d02d2eb5132fa7c6573ed7db20d7e18f3e (diff) | |
`for in string16`; Support `string16` across core
Diffstat (limited to 'core/path')
| -rw-r--r-- | core/path/filepath/path_windows.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/filepath/path_windows.odin b/core/path/filepath/path_windows.odin index 0dcb28cf8..24c6e00a5 100644 --- a/core/path/filepath/path_windows.odin +++ b/core/path/filepath/path_windows.odin @@ -61,13 +61,13 @@ temp_full_path :: proc(name: string) -> (path: string, err: os.Error) { } p := win32.utf8_to_utf16(name, ta) - n := win32.GetFullPathNameW(raw_data(p), 0, nil, nil) + n := win32.GetFullPathNameW(cstring16(raw_data(p)), 0, nil, nil) if n == 0 { return "", os.get_last_error() } buf := make([]u16, n, ta) - n = win32.GetFullPathNameW(raw_data(p), u32(len(buf)), raw_data(buf), nil) + n = win32.GetFullPathNameW(cstring16(raw_data(p)), u32(len(buf)), cstring16(raw_data(buf)), nil) if n == 0 { delete(buf) return "", os.get_last_error() |