os2: fix lstat logic
This commit is contained in:
1 parent
00eb702c4a
commit
7474db6a34
2 files changed
+25
-12
No files matched your search
@@ -96,8 +96,7 @@ _remove_all :: proc(path: string) -> Error {
|
||||
}
|
||||
|
||||
_get_working_directory :: proc(allocator: runtime.Allocator) -> (dir: string, err: Error) {
|
||||
assert(!is_temp(allocator))
|
||||
TEMP_ALLOCATOR_GUARD()
|
||||
TEMP_ALLOCATOR_GUARD(ignore=is_temp(allocator))
|
||||
|
||||
buf: [dynamic]byte
|
||||
buf.allocator = temp_allocator()
|
||||
|
||||
Reference in new issue
Block a user