[newlib-cygwin] Cygwin: Decorate NtQueryVirtualMemory() to fix 32-bit build

Jon TURNEY jturney@sourceware.org
Tue Jul 28 12:28:11 GMT 2020


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

commit 7b1416c3abe890c8058001d6bb795802f80270af
Author: Jon Turney <jon.turney@dronecode.org.uk>
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 <takashi.yano@nifty.ne.jp>

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,


More information about the Cygwin-cvs mailing list