mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-08 08:38:51 +00:00
Use SHFileOperationW for remove_all on Windows
This commit is contained in:
@@ -109,11 +109,12 @@ _open_internal :: proc(name: string, flags: File_Flags, perm: int) -> (handle: u
|
||||
case 0:
|
||||
return uintptr(h), nil
|
||||
case:
|
||||
return 0, Platform_Error(e)
|
||||
return 0, _get_platform_error()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h := win32.CreateFileW(path, access, share_mode, &sa, create_mode, attrs, nil)
|
||||
if h == win32.INVALID_HANDLE {
|
||||
return 0, _get_platform_error()
|
||||
|
||||
Reference in New Issue
Block a user