Introduce the allocator stuff again
This commit is contained in:
@@ -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 {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user