mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +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 parent
78925e2e83
commit
adc8f06c02
1 file changed
+1
-1
+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