Commit: a1bb059b7bbf2cfd136cf03446d0886d0661c69c
Parent: 8df38a8297cc287afa08cbf225030a40424f58ab
Author: Randy Palamar
Date: Thu, 31 Oct 2024 10:33:07 -0600
win32: fix a few missed argument changes
gotta remember to:
x86_64-w64-mingw32-cc -c os_win32.c -o /dev/null
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/os_win32.c b/os_win32.c
@@ -115,10 +115,8 @@ static PLATFORM_ALLOC_ARENA_FN(os_alloc_arena)
VirtualFree(old.beg, oldsize, MEM_RELEASE);
result.beg = VirtualAlloc(0, capacity, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE);
- if (result.beg == NULL) {
- os_write_err_msg(s8("os_alloc_arena: couldn't allocate memory\n"));
- os_fail();
- }
+ if (result.beg == NULL)
+ os_fatal(s8("os_alloc_arena: couldn't allocate memory\n"));
result.end = result.beg + capacity;
return result;
}
@@ -244,7 +242,7 @@ os_load_library(char *name, char *temp_name, Stream *e)
stream_append_s8_array(e, errs, ARRAY_COUNT(errs));
stream_append_i64(e, GetLastError());
stream_append_byte(e, '\n');
- os_write_err_msg(stream_to_s8(*e));
+ os_write_err_msg(stream_to_s8(e));
e->widx = 0;
}
@@ -265,7 +263,7 @@ os_lookup_dynamic_symbol(void *h, char *name, Stream *e)
stream_append_s8_array(e, errs, ARRAY_COUNT(errs));
stream_append_i64(e, GetLastError());
stream_append_byte(e, '\n');
- os_write_err_msg(stream_to_s8(*e));
+ os_write_err_msg(stream_to_s8(e));
e->widx = 0;
}
return res;