Windows compat fixes.
This commit is contained in:
@@ -124,7 +124,7 @@ void xe_mmap_release(xe_mmap_ref mmap) {
|
||||
}
|
||||
|
||||
uint8_t* xe_mmap_get_addr(xe_mmap_ref mmap) {
|
||||
return mmap->addr;
|
||||
return reinterpret_cast<uint8_t*>(mmap->addr);
|
||||
}
|
||||
|
||||
size_t xe_mmap_get_length(xe_mmap_ref mmap) {
|
||||
|
||||
@@ -93,7 +93,7 @@ int xe_thread_start(xe_thread_ref thread) {
|
||||
thread,
|
||||
0,
|
||||
NULL);
|
||||
if (!handle) {
|
||||
if (!thread_handle) {
|
||||
uint32_t last_error = GetLastError();
|
||||
// TODO(benvanik): translate?
|
||||
XELOGE(XT("CreateThread failed with %d"), last_error);
|
||||
|
||||
Reference in New Issue
Block a user