Files
MSYS2-packages/msys2-runtime/0018-QueryUnbiasedInterruptTime-must-be-load-from-kernel3.patch
T
Johannes Schindelin 18e0ba1177 msys2-runtime: fix Bad address when running cmd /c <command>
This imports https://github.com/msys2/msys2-runtime/pull/110 into the
`MSYS2-packages` repository, fixing a regression where `cmd /c
<command>` caused a `Bad address` error.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2022-10-24 08:54:31 +02:00

24 lines
914 B
Diff

From b0485d48b3e82ba2c37fb2aa294458c0c79eeafe Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Fri, 24 May 2019 13:41:47 +0300
Subject: [PATCH 18/N] QueryUnbiasedInterruptTime must be load from
kernel32.dll
---
winsup/cygwin/autoload.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc
index e254397..2a03ac1 100644
--- a/winsup/cygwin/autoload.cc
+++ b/winsup/cygwin/autoload.cc
@@ -596,7 +596,7 @@ LoadDLLfunc (SetThreadGroupAffinity, 12, kernel32)
available via KernelBase.dll. */
LoadDLLfunc (QueryInterruptTime, 4, KernelBase)
LoadDLLfunc (QueryInterruptTimePrecise, 4, KernelBase)
-LoadDLLfunc (QueryUnbiasedInterruptTime, 4, KernelBase)
+LoadDLLfunc (QueryUnbiasedInterruptTime, 4, kernel32)
LoadDLLfunc (QueryUnbiasedInterruptTimePrecise, 4, KernelBase)
LoadDLLfunc (VirtualAlloc2, 28, KernelBase)