diff options
| author | Phuk Ng Yu <phuk@ng.yu> | 2022-10-07 00:06:46 -0700 |
|---|---|---|
| committer | Phuk Ng Yu <phuk@ng.yu> | 2022-10-07 00:06:46 -0700 |
| commit | 8b06fd093518c01c896e4eb2bcb271a5bc593b7e (patch) | |
| tree | a577d8a91b5775a6f2e4245e7099657a50e4d6bd | |
| parent | ee070c9bd3d5a33fc9f128cb67e905f6e7bf99db (diff) | |
os2/file_windows fix
| -rw-r--r-- | core/os/os2/file_windows.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os2/file_windows.odin b/core/os/os2/file_windows.odin index 7589ed799..e4ae4856a 100644 --- a/core/os/os2/file_windows.odin +++ b/core/os/os2/file_windows.odin @@ -130,7 +130,7 @@ _new_file :: proc(handle: uintptr, name: string) -> ^File { f := new(File, _file_allocator()) f.impl.allocator = _file_allocator() - f.impl.fd = rawptr(fd) + f.impl.fd = rawptr(handle) f.impl.name = strings.clone(name, f.impl.allocator) f.impl.wname = win32.utf8_to_wstring(name, f.impl.allocator) |