From 7b1416c3abe890c8058001d6bb795802f80270af Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 28 Jul 2020 13:25:00 +0100 Subject: [PATCH] Cygwin: Decorate NtQueryVirtualMemory() to fix 32-bit build Decorate NtQueryVirtualMemory() with NTAPI (for stdcall) to fix 32-bit build. Reported-by: Takashi Yano --- winsup/utils/dumper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/utils/dumper.cc b/winsup/utils/dumper.cc index 3af138b9e..36dbf9dbb 100644 --- a/winsup/utils/dumper.cc +++ b/winsup/utils/dumper.cc @@ -272,7 +272,7 @@ typedef enum _MEMORY_INFORMATION_CLASS } MEMORY_INFORMATION_CLASS; extern "C" -NTSTATUS +NTSTATUS NTAPI NtQueryVirtualMemory(HANDLE ProcessHandle, LPVOID BaseAddress, MEMORY_INFORMATION_CLASS MemoryInformationClass,