From d70a2a6742c416d792551313e4c5e9624cede84e Mon Sep 17 00:00:00 2001 From: Xadhoom <> Date: Fri, 1 Jan 2021 19:29:33 +0000 Subject: [PATCH] Fix sys_thread_function --- ports/win32/sys_arch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/win32/sys_arch.c b/ports/win32/sys_arch.c index 84232d5..1a37f14 100644 --- a/ports/win32/sys_arch.c +++ b/ports/win32/sys_arch.c @@ -421,7 +421,7 @@ SetThreadName(DWORD dwThreadID, const char* threadName) } #endif /* _MSC_VER */ -static void +static DWORD __stdcall sys_thread_function(void* arg) { struct threadlist* t = (struct threadlist*)arg; @@ -432,6 +432,7 @@ sys_thread_function(void* arg) #if LWIP_NETCONN_SEM_PER_THREAD sys_arch_netconn_sem_free(); #endif + return 0; } sys_thread_t