https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7b1416c3abe890c8058001d6bb795802f80270af

commit 7b1416c3abe890c8058001d6bb795802f80270af
Author: Jon Turney <[email protected]>
Date:   Tue Jul 28 13:25:00 2020 +0100

    Cygwin: Decorate NtQueryVirtualMemory() to fix 32-bit build
    
    Decorate NtQueryVirtualMemory() with NTAPI (for stdcall) to fix 32-bit
    build.
    
    Reported-by: Takashi Yano <[email protected]>

Diff:
---
 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,

Reply via email to