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 Win32InputFromFileLineA

Changed the type of `read_size` from `UINT` to `DWORD` in `Win32.c` to resolve a compiler warning (`-Wincompatible-pointer-types`). The Windows API function `ReadFile` expects an `LPDWORD` (a pointer to an `unsigned long`) for the `lpNumberOfBytesRead` parameter, while `UINT` maps to `unsigned int`.
This commit is contained in:
Ilia Shipitsin
2026-08-29 21:04:51 +02:00
parent 041f39572e
commit a820ac7ddc
+1 -1
View File
@@ -3341,7 +3341,7 @@ char *Win32InputFromFileLineA()
while (true) while (true)
{ {
char c; char c;
UINT read_size = 0; DWORD read_size = 0;
if (ReadFile(hstdin, &c, 1, &read_size, NULL) == false) if (ReadFile(hstdin, &c, 1, &read_size, NULL) == false)
{ {