From 2f696b4bdb81874f43fb9dcc759a0af7490117b8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 2 Oct 2000 08:31:07 +0000 Subject: [PATCH] * fhandler_mem.cc (load_ntdll_funcs): Add missing __stdcall qualifiers. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_mem.cc | 16 +++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0c6bd674c..ec2475082 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Sun Oct 1 16:36:00 2000 Corinna Vinschen + + * fhandler_mem.cc (load_ntdll_funcs): Add missing __stdcall qualifiers. + Sun Oct 1 22:20:39 2000 Christopher Faylor * cygheap.cc (cygheap_init): Born again function. diff --git a/winsup/cygwin/fhandler_mem.cc b/winsup/cygwin/fhandler_mem.cc index 7d26bd469..1d7439b31 100644 --- a/winsup/cygwin/fhandler_mem.cc +++ b/winsup/cygwin/fhandler_mem.cc @@ -55,37 +55,39 @@ load_ntdll_funcs () goto out; } - if (!(NtMapViewOfSection = (NTSTATUS (*)(HANDLE,HANDLE,PVOID*,ULONG,ULONG, - PLARGE_INTEGER,PULONG, - SECTION_INHERIT,ULONG,ULONG)) + if (!(NtMapViewOfSection = (NTSTATUS (__stdcall *)(HANDLE,HANDLE,PVOID*,ULONG, + ULONG,PLARGE_INTEGER, + PULONG,SECTION_INHERIT, + ULONG,ULONG)) GetProcAddress (ntdll, "NtMapViewOfSection"))) { __seterrno (); goto out; } - if (!(NtOpenSection = (NTSTATUS (*)(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES)) + if (!(NtOpenSection = (NTSTATUS (__stdcall *)(PHANDLE,ACCESS_MASK, + POBJECT_ATTRIBUTES)) GetProcAddress (ntdll, "NtOpenSection"))) { __seterrno (); goto out; } - if (!(NtUnmapViewOfSection = (NTSTATUS (*)(HANDLE,PVOID)) + if (!(NtUnmapViewOfSection = (NTSTATUS (__stdcall *)(HANDLE,PVOID)) GetProcAddress (ntdll, "NtUnmapViewOfSection"))) { __seterrno (); goto out; } - if (!(RtlInitUnicodeString = (VOID (*)(PUNICODE_STRING,PCWSTR)) + if (!(RtlInitUnicodeString = (VOID (__stdcall *)(PUNICODE_STRING,PCWSTR)) GetProcAddress (ntdll, "RtlInitUnicodeString"))) { __seterrno (); goto out; } - if (!(RtlNtStatusToDosError = (ULONG (*)(NTSTATUS)) + if (!(RtlNtStatusToDosError = (ULONG (__stdcall *)(NTSTATUS)) GetProcAddress (ntdll, "RtlNtStatusToDosError"))) { __seterrno (); -- 2.43.5