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:
@@ -127,7 +127,7 @@ void IPsecWin7UpdateHostIPAddressList(IPSEC_WIN7 *w)
|
||||
LIST *o;
|
||||
UINT i;
|
||||
BUF *buf;
|
||||
UINT retsize;
|
||||
DWORD retsize;
|
||||
// Validate arguments
|
||||
if (w == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user