Introduce the allocator stuff again

This commit is contained in:
Krzosa Karol
2022-12-31 16:51:01 +01:00
parent e20edaa3a2
commit 55515ff420
12 changed files with 71 additions and 44 deletions

View File

@@ -162,7 +162,7 @@ os_get_absolute_path(Arena *a, String path){
Scratch scratch(a);
String16 path16 = string8_to_string16(scratch, path);
wchar_t *buffer = arena_push_array(scratch, wchar_t, 2048);
wchar_t *buffer = allocate_array(scratch, wchar_t, 2048);
DWORD written = GetFullPathNameW((wchar_t *)path16.str, 2048, buffer, 0);
if(written == 0) return {};