1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-09-19 09:51:28 +03:00

Fix incompatible pointer type warning in IPsecWin7UpdateHostIPAddressList

Changed the type of `retsize` from `UINT` to `DWORD` in `Proto_Win7.c` to resolve a compiler warning (`-Wincompatible-pointer-types`). The Windows API function `WriteFile` expects an `LPDWORD` (a pointer to an `unsigned long`) for its `lpNumberOfBytesWritten` parameter, whereas `UINT` maps to `unsigned int`.
This commit is contained in:
Ilia Shipitsin
2026-08-29 21:27:39 +02:00
parent ba16ba3a10
commit 7530741414
+1 -1
View File
@@ -127,7 +127,7 @@ void IPsecWin7UpdateHostIPAddressList(IPSEC_WIN7 *w)
LIST *o; LIST *o;
UINT i; UINT i;
BUF *buf; BUF *buf;
UINT retsize; DWORD retsize;
// Validate arguments // Validate arguments
if (w == NULL) if (w == NULL)
{ {