Fix bug in memory allocation function

This commit is contained in:
Abdelrahman Said 2024-08-24 19:07:00 +01:00
parent 775f0864a8
commit b8f6e5f187

View File

@ -75,7 +75,7 @@ void *wapp_mem_util_alloc(void *addr, u64 size, MemAccess access,
#elif defined(WAPP_PLATFORM_POSIX) #elif defined(WAPP_PLATFORM_POSIX)
void *output = alloc_posix(addr, size, access, flags); void *output = alloc_posix(addr, size, access, flags);
#else #else
return NULL; #error "Unrecognised platform"
#endif #endif
if (type == WAPP_MEM_INIT_INITIALISED) { if (type == WAPP_MEM_INIT_INITIALISED) {