mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-09-19 09:51:28 +03:00
Fix -Wincompatible-pointer-types in Win32InitThread
Change the type of the `thread_id` variable from `DWORD` to `UINT` in `src/Mayaqua/Win32.c`. This resolves a build error where passing `&thread_id` to `_beginthreadex` was flagged as an incompatible pointer type, because the function expects a pointer to an `unsigned int` rather than a pointer to an `unsigned long` (`DWORD`).
This commit is contained in:
+1
-1
@@ -2822,7 +2822,7 @@ bool Win32InitThread(THREAD *t)
|
||||
{
|
||||
WIN32THREAD *w;
|
||||
HANDLE hThread;
|
||||
DWORD thread_id;
|
||||
UINT thread_id;
|
||||
WIN32THREADSTARTUPINFO *info;
|
||||
// Validate arguments
|
||||
if (t == NULL)
|
||||
|
||||
Reference in New Issue
Block a user