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:
+1
-1
@@ -3341,7 +3341,7 @@ char *Win32InputFromFileLineA()
|
||||
while (true)
|
||||
{
|
||||
char c;
|
||||
UINT read_size = 0;
|
||||
DWORD read_size = 0;
|
||||
|
||||
if (ReadFile(hstdin, &c, 1, &read_size, NULL) == false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user