瀏覽代碼

os2/file_windows fix

Phuk Ng Yu 3 年之前
父節點
當前提交
8b06fd0935
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/os/os2/file_windows.odin

+ 1 - 1
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)