1
0
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:
Ilia Shipitsin
2026-08-23 12:24:09 +02:00
parent 78925e2e83
commit adc8f06c02
+1 -1
View File
@@ -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)