* fhandler_mem.cc (load_ntdll_funcs): Add missing __stdcall qualifiers.

This commit is contained in:
Corinna Vinschen 2000-10-02 08:31:07 +00:00
parent 9fc09d00f7
commit 2f696b4bdb
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,7 @@
Sun Oct 1 16:36:00 2000 Corinna Vinschen <corinna@vinschen.de>
* fhandler_mem.cc (load_ntdll_funcs): Add missing __stdcall qualifiers.
Sun Oct 1 22:20:39 2000 Christopher Faylor <cgf@cygnus.com> Sun Oct 1 22:20:39 2000 Christopher Faylor <cgf@cygnus.com>
* cygheap.cc (cygheap_init): Born again function. * cygheap.cc (cygheap_init): Born again function.

View File

@ -55,37 +55,39 @@ load_ntdll_funcs ()
goto out; goto out;
} }
if (!(NtMapViewOfSection = (NTSTATUS (*)(HANDLE,HANDLE,PVOID*,ULONG,ULONG, if (!(NtMapViewOfSection = (NTSTATUS (__stdcall *)(HANDLE,HANDLE,PVOID*,ULONG,
PLARGE_INTEGER,PULONG, ULONG,PLARGE_INTEGER,
SECTION_INHERIT,ULONG,ULONG)) PULONG,SECTION_INHERIT,
ULONG,ULONG))
GetProcAddress (ntdll, "NtMapViewOfSection"))) GetProcAddress (ntdll, "NtMapViewOfSection")))
{ {
__seterrno (); __seterrno ();
goto out; goto out;
} }
if (!(NtOpenSection = (NTSTATUS (*)(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES)) if (!(NtOpenSection = (NTSTATUS (__stdcall *)(PHANDLE,ACCESS_MASK,
POBJECT_ATTRIBUTES))
GetProcAddress (ntdll, "NtOpenSection"))) GetProcAddress (ntdll, "NtOpenSection")))
{ {
__seterrno (); __seterrno ();
goto out; goto out;
} }
if (!(NtUnmapViewOfSection = (NTSTATUS (*)(HANDLE,PVOID)) if (!(NtUnmapViewOfSection = (NTSTATUS (__stdcall *)(HANDLE,PVOID))
GetProcAddress (ntdll, "NtUnmapViewOfSection"))) GetProcAddress (ntdll, "NtUnmapViewOfSection")))
{ {
__seterrno (); __seterrno ();
goto out; goto out;
} }
if (!(RtlInitUnicodeString = (VOID (*)(PUNICODE_STRING,PCWSTR)) if (!(RtlInitUnicodeString = (VOID (__stdcall *)(PUNICODE_STRING,PCWSTR))
GetProcAddress (ntdll, "RtlInitUnicodeString"))) GetProcAddress (ntdll, "RtlInitUnicodeString")))
{ {
__seterrno (); __seterrno ();
goto out; goto out;
} }
if (!(RtlNtStatusToDosError = (ULONG (*)(NTSTATUS)) if (!(RtlNtStatusToDosError = (ULONG (__stdcall *)(NTSTATUS))
GetProcAddress (ntdll, "RtlNtStatusToDosError"))) GetProcAddress (ntdll, "RtlNtStatusToDosError")))
{ {
__seterrno (); __seterrno ();