From 78925e2e83fd17e616227e2296b713d391adf6ce Mon Sep 17 00:00:00 2001 From: Ilia Shipitsin Date: Sun, 23 Aug 2026 12:22:22 +0200 Subject: [PATCH] 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`. --- src/Mayaqua/Win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mayaqua/Win32.c b/src/Mayaqua/Win32.c index 7ed778cb..9e7ac49a 100644 --- a/src/Mayaqua/Win32.c +++ b/src/Mayaqua/Win32.c @@ -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