mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
os2/file_windows fix
This commit is contained in:
@@ -130,7 +130,7 @@ _new_file :: proc(handle: uintptr, name: string) -> ^File {
|
|||||||
f := new(File, _file_allocator())
|
f := new(File, _file_allocator())
|
||||||
|
|
||||||
f.impl.allocator = _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.name = strings.clone(name, f.impl.allocator)
|
||||||
f.impl.wname = win32.utf8_to_wstring(name, f.impl.allocator)
|
f.impl.wname = win32.utf8_to_wstring(name, f.impl.allocator)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user