mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-09-19 18:01:25 +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;
|
WIN32THREAD *w;
|
||||||
HANDLE hThread;
|
HANDLE hThread;
|
||||||
DWORD thread_id;
|
UINT thread_id;
|
||||||
WIN32THREADSTARTUPINFO *info;
|
WIN32THREADSTARTUPINFO *info;
|
||||||
// Validate arguments
|
// Validate arguments
|
||||||
if (t == NULL)
|
if (t == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user