[newlib-cygwin/main] Cygwin: revert autoloading of DiscardVirtualMemory
Corinna Vinschen
corinna@sourceware.org
Thu Nov 30 21:39:54 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=013de6b097feb94b58386a2a51c32ecab5e80db7
commit 013de6b097feb94b58386a2a51c32ecab5e80db7
Author: Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Thu Nov 30 21:14:48 2023 +0100
Commit: Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Nov 30 22:37:35 2023 +0100
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 <corinna@vinschen.de>
Diff:
---
winsup/cygwin/autoload.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index c8909caff4b1..c1a124c1d120 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)
More information about the Cygwin-cvs
mailing list