From 89f1d9d70dfadda39fa3446d339ad0002ef333bf Mon Sep 17 00:00:00 2001 From: Joachim Henze Date: Tue, 15 Mar 2022 15:04:12 +0100 Subject: [PATCH] [0.4.11][ACGENRAL] Fix a MSVC warning about a ShimLib_ShimFree() call (#1506) CORE-7538 Can be observed with MSVC2010SP1 x86-target dbg-config: "...\ignorefreelib.c(125): error C4090: 'function': different 'const' qualifiers" Addendum to 0.4.11-dev-740-g 007cc5cd8a4ede70516bf2bf15dd62af01dfc8f0 Older branches than releases/0.4.11 were not affected yet by this compiler warning. Fix picked from: 0.4.13-dev-75-g a57bc4f6c3a857bb1de98fd15265db83d8e456d8 --- dll/appcompat/shims/genral/ignorefreelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/appcompat/shims/genral/ignorefreelib.c b/dll/appcompat/shims/genral/ignorefreelib.c index 01b472fc069..1d7c771382d 100644 --- a/dll/appcompat/shims/genral/ignorefreelib.c +++ b/dll/appcompat/shims/genral/ignorefreelib.c @@ -122,7 +122,7 @@ fail: --n; } - ShimLib_ShimFree(names); + ShimLib_ShimFree((PVOID)names); } BOOL WINAPI SHIM_OBJ_NAME(Notify)(DWORD fdwReason, PVOID ptr)