mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Update dir_windows.odin
This commit is contained in:
@@ -88,8 +88,8 @@ read_dir :: proc(fd: Handle, n: int, allocator := context.allocator) -> (fi: []F
|
|||||||
find_data := &win32.WIN32_FIND_DATAW{}
|
find_data := &win32.WIN32_FIND_DATAW{}
|
||||||
find_handle := win32.FindFirstFileW(raw_data(wpath_search), find_data)
|
find_handle := win32.FindFirstFileW(raw_data(wpath_search), find_data)
|
||||||
if find_handle == win32.INVALID_HANDLE_VALUE {
|
if find_handle == win32.INVALID_HANDLE_VALUE {
|
||||||
e = Errno(win32.GetLastError())
|
err = Errno(win32.GetLastError())
|
||||||
return
|
return dfi[:], err
|
||||||
}
|
}
|
||||||
defer win32.FindClose(find_handle)
|
defer win32.FindClose(find_handle)
|
||||||
for n != 0 {
|
for n != 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user