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

Fix -Wincompatible-pointer-types in Win32SetFolderCompress

Change the type of the `retsize` variable from `UINT` to `DWORD` in both `Win32SetFolderCompressW` and `Win32SetFolderCompress` in `src/Mayaqua/Win32.c`.

This resolves a build error where passing `&retsize` to `DeviceIoControl` was flagged as an incompatible pointer type, because the API expects an `LPDWORD` (pointer to `unsigned long`) rather than a pointer to `unsigned int`.
This commit is contained in:
Ilia Shipitsin
2026-08-23 12:22:22 +02:00
parent 9681053dc0
commit 78925e2e83
+2 -2
View File
@@ -195,7 +195,7 @@ void Win32InitNewThread()
bool Win32SetFolderCompressW(wchar_t *path, bool compressed) bool Win32SetFolderCompressW(wchar_t *path, bool compressed)
{ {
HANDLE h; HANDLE h;
UINT retsize = 0; DWORD retsize = 0;
USHORT flag; USHORT flag;
wchar_t tmp[MAX_PATH]; wchar_t tmp[MAX_PATH];
// Validate arguments // Validate arguments
@@ -239,7 +239,7 @@ bool Win32SetFolderCompressW(wchar_t *path, bool compressed)
bool Win32SetFolderCompress(char *path, bool compressed) bool Win32SetFolderCompress(char *path, bool compressed)
{ {
HANDLE h; HANDLE h;
UINT retsize = 0; DWORD retsize = 0;
USHORT flag; USHORT flag;
char tmp[MAX_PATH]; char tmp[MAX_PATH];
// Validate arguments // Validate arguments