* 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>
* cygheap.cc (cygheap_init): Born again function.

View File

@ -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 ();