From 013de6b097feb94b58386a2a51c32ecab5e80db7 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 30 Nov 2023 21:14:48 +0100 Subject: Cygwin: revert autoloading of DiscardVirtualMemory Commit a3ae2a734892 ("Cygwin: don't autoload some kernel32 functions") erroneously removed DiscardVirtualMemory from the list of autloaded functions. DiscardVirtualMemory is not available on Windows 8.1. Fixes: a3ae2a734892 ("Cygwin: don't autoload some kernel32 functions") Signed-off-by: Corinna Vinschen --- winsup/cygwin/autoload.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup') diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index c8909caff..c1a124c1d 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -465,6 +465,7 @@ LoadDLLfunc (GetUdpTable, iphlpapi) LoadDLLfunc (if_indextoname, iphlpapi) LoadDLLfunc (if_nametoindex, iphlpapi) +LoadDLLfuncEx2 (DiscardVirtualMemory, kernel32, 1, 127) LoadDLLfuncEx (ClosePseudoConsole, kernel32, 1) LoadDLLfuncEx (CreatePseudoConsole, kernel32, 1) LoadDLLfuncEx (IsWow64Process2, kernel32, 1) -- cgit v1.2.3