From bb7972c4372426ef1005ab981cc8fa043e8034a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 13 May 2024 01:48:15 +0200 Subject: [PATCH] Correct the wPlanes field in the ico format --- Windows/W32Util/ShellUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/W32Util/ShellUtil.cpp b/Windows/W32Util/ShellUtil.cpp index 0a3621ad30..c0f3af4a49 100644 --- a/Windows/W32Util/ShellUtil.cpp +++ b/Windows/W32Util/ShellUtil.cpp @@ -318,7 +318,7 @@ bool CreateICOFromPNGData(const uint8_t *imageData, size_t imageDataSize, const entry.bHeight = pngHeader.Height(); entry.bColorCount = 0; entry.dwBytesInRes = (DWORD)imageDataSize; - entry.wPlanes = 32; + entry.wPlanes = 1; entry.wBitCount = 32; entry.dwImageOffset = sizeof(hdr) + sizeof(entry);