public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: Decorate NtQueryVirtualMemory() to fix 32-bit build
Date: Tue, 28 Jul 2020 12:28:11 +0000 (GMT)	[thread overview]
Message-ID: <20200728122811.066EE3857C52@sourceware.org> (raw)

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,


                 reply	other threads:[~2020-07-28 12:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200728122811.066EE3857C52@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).