From c071ad688f79e00c644554ac46044c548f4c2c05 Mon Sep 17 00:00:00 2001 From: JGZYES Date: Sat, 5 Sep 2026 18:43:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Windows=20pmm=20clean=20=E2=80=94=20use?= =?UTF-8?q?=20DeleteFileA=20(RemoveFileA=20doesn't=20exist)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clean_rm referenced the nonexistent RemoveFileA, so the windows-amd64 matrix failed to link. Use DeleteFileA (the real Win32 API) for file removal. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5a192f0..c8e7cb2 100644 --- a/src/main.c +++ b/src/main.c @@ -828,7 +828,7 @@ static void clean_rm(const char *path) { } else { ULONGLONG sz = ((ULONGLONG)fd.nFileSizeHigh << 32) | fd.nFileSizeLow; g_clean_size += (unsigned long long)sz; g_clean_count++; - RemoveFileA(full); + DeleteFileA(full); } } while (FindNextFileA(h, &fd)); FindClose(h);