mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-09-19 09:51:28 +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:
+2
-2
@@ -195,7 +195,7 @@ void Win32InitNewThread()
|
||||
bool Win32SetFolderCompressW(wchar_t *path, bool compressed)
|
||||
{
|
||||
HANDLE h;
|
||||
UINT retsize = 0;
|
||||
DWORD retsize = 0;
|
||||
USHORT flag;
|
||||
wchar_t tmp[MAX_PATH];
|
||||
// Validate arguments
|
||||
@@ -239,7 +239,7 @@ bool Win32SetFolderCompressW(wchar_t *path, bool compressed)
|
||||
bool Win32SetFolderCompress(char *path, bool compressed)
|
||||
{
|
||||
HANDLE h;
|
||||
UINT retsize = 0;
|
||||
DWORD retsize = 0;
|
||||
USHORT flag;
|
||||
char tmp[MAX_PATH];
|
||||
// Validate arguments
|
||||
|
||||
Reference in New Issue
Block a user