public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program] branch master, updated. release_2.929-1-g86c0ada12dce Date: Mon, 5 Feb 2024 20:49:47 +0000 (GMT) [thread overview] Message-ID: <20240205204947.839863858C2F@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=86c0ada12dce4403a9b796380fde9e5c1824734f commit 86c0ada12dce4403a9b796380fde9e5c1824734f Author: Corinna Vinschen <corinna@vinschen.de> Date: Mon Feb 5 21:47:46 2024 +0100 Disallow DLL loading from other than C:\Windows\System32 Call SetDefaultDllDirectories early to make sure, delay-loaded DLLs are only loaded from the System32 dir. Diff: --- main.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cc b/main.cc index 198a943e0859..b570c6cb18ec 100644 --- a/main.cc +++ b/main.cc @@ -225,9 +225,11 @@ int WINAPI WinMain (HINSTANCE h, HINSTANCE hPrevInstance, LPSTR command_line, int cmd_show) { - hinstance = h; + // Make sure Windows DLLs only delay-load further DLLs from System32 + SetDefaultDllDirectories (LOAD_LIBRARY_SEARCH_SYSTEM32); + // Make sure the C runtime functions use the same codepage as the GUI char locale[12]; snprintf(locale, sizeof locale, ".%u", GetACP());
reply other threads:[~2024-02-05 20:49 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240205204947.839863858C2F@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).