Minor changes to os2

This commit is contained in:
gingerBill
2024-02-17 13:41:54 +00:00
parent c5c2a4d09d
commit fa1875a8f1
5 changed files with 55 additions and 3 deletions
+2
View File
@@ -17,6 +17,8 @@ _temp_dir :: proc(allocator: runtime.Allocator) -> (string, runtime.Allocator_Er
if n == 0 {
return "", nil
}
_TEMP_ALLOCATOR_GUARD()
b := make([]u16, max(win32.MAX_PATH, n), _temp_allocator())
n = win32.GetTempPathW(u32(len(b)), raw_data(b))