summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-01-12 15:11:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-12 15:11:41 -0800
commita4510f8106a65f42d4ecbe9b826f16e4ff9df6db (patch)
tree2c46633005363bc26b15aefd8648d052a2c97478 /t
parentMerge branch 'fs/ssh-signing-key-lifetime' (diff)
parentlazyload: use correct calling conventions (diff)
downloadtgif-a4510f8106a65f42d4ecbe9b826f16e4ff9df6db.tar.xz
Merge branch 'ma/windows-dynload-fix'
Fix calling dynamically loaded functions on Windows. * ma/windows-dynload-fix: lazyload: use correct calling conventions
Diffstat (limited to 't')
-rw-r--r--t/helper/test-drop-caches.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/helper/test-drop-caches.c b/t/helper/test-drop-caches.c
index 7b4278462b..e37396dd9c 100644
--- a/t/helper/test-drop-caches.c
+++ b/t/helper/test-drop-caches.c
@@ -3,6 +3,7 @@
#if defined(GIT_WINDOWS_NATIVE)
#include "lazyload.h"
+#include <winnt.h>
static int cmd_sync(void)
{
@@ -86,7 +87,8 @@ static int cmd_dropcaches(void)
{
HANDLE hProcess = GetCurrentProcess();
HANDLE hToken;
- DECLARE_PROC_ADDR(ntdll.dll, DWORD, NtSetSystemInformation, INT, PVOID, ULONG);
+ DECLARE_PROC_ADDR(ntdll.dll, DWORD, NTAPI, NtSetSystemInformation, INT, PVOID,
+ ULONG);
SYSTEM_MEMORY_LIST_COMMAND command;
int status;