diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-01-12 23:11:41 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-12 23:11:41 (GMT) |
commit | a4510f8106a65f42d4ecbe9b826f16e4ff9df6db (patch) | |
tree | 2c46633005363bc26b15aefd8648d052a2c97478 /t/helper | |
parent | cde28af37b19e07139ebb6a355d742e763b7a235 (diff) | |
parent | 4a9b204920152c668228a9d43a63be39b0c32f45 (diff) | |
download | git-a4510f8106a65f42d4ecbe9b826f16e4ff9df6db.zip git-a4510f8106a65f42d4ecbe9b826f16e4ff9df6db.tar.gz git-a4510f8106a65f42d4ecbe9b826f16e4ff9df6db.tar.bz2 |
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/helper')
-rw-r--r-- | t/helper/test-drop-caches.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/helper/test-drop-caches.c b/t/helper/test-drop-caches.c index 7b42784..e37396d 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; |