mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +00:00
[RTL/NDK/NTDLL]
- Fix calling convention of RtlSetProcessIsCritical and RtlSetThreadIsCritical (they are __cdecl!) [NDK] - Add missing extern "C" svn path=/trunk/; revision=61568
This commit is contained in:
parent
d3872b419c
commit
0a7344aca7
5 changed files with 30 additions and 22 deletions
|
@ -846,7 +846,7 @@
|
|||
@ stdcall RtlSetLastWin32ErrorAndNtStatusFromNtStatus(long)
|
||||
@ stdcall RtlSetMemoryStreamSize(ptr int64)
|
||||
@ stdcall RtlSetOwnerSecurityDescriptor(ptr ptr long)
|
||||
@ stdcall RtlSetProcessIsCritical(long ptr long)
|
||||
@ cdecl RtlSetProcessIsCritical(long ptr long)
|
||||
;@ stdcall RtlSetProperties ; RtlSetProperties
|
||||
;@ stdcall RtlSetPropertyClassId ; 4.0 only
|
||||
;@ stdcall RtlSetPropertyNames ; 4.0 only
|
||||
|
@ -856,7 +856,7 @@
|
|||
@ stdcall RtlSetSecurityObject(long ptr ptr ptr ptr)
|
||||
@ stdcall RtlSetSecurityObjectEx(long ptr ptr long ptr ptr)
|
||||
@ stdcall RtlSetThreadErrorMode(long ptr)
|
||||
@ stdcall RtlSetThreadIsCritical(long ptr long)
|
||||
@ cdecl RtlSetThreadIsCritical(long ptr long)
|
||||
@ stdcall RtlSetThreadPoolStartFunc(ptr ptr)
|
||||
@ stdcall RtlSetTimeZoneInformation(ptr)
|
||||
;@ stdcall RtlSetTimer
|
||||
|
|
|
@ -26,6 +26,10 @@ Author:
|
|||
#include <arch/mmtypes.h>
|
||||
#include <extypes.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//
|
||||
// Page-Rounding Macros
|
||||
//
|
||||
|
@ -1037,4 +1041,8 @@ extern POBJECT_TYPE NTSYSAPI MmSectionObjectType;
|
|||
|
||||
#endif // !NTOS_MODE_USER
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // _MMTYPES_H
|
||||
|
|
|
@ -2564,7 +2564,7 @@ RtlRemoteCall(
|
|||
|
||||
NTSYSAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
__cdecl
|
||||
RtlSetProcessIsCritical(
|
||||
_In_ BOOLEAN NewValue,
|
||||
_Out_opt_ PBOOLEAN OldValue,
|
||||
|
@ -2573,7 +2573,7 @@ RtlSetProcessIsCritical(
|
|||
|
||||
NTSYSAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
__cdecl
|
||||
RtlSetThreadIsCritical(
|
||||
_In_ BOOLEAN NewValue,
|
||||
_Out_opt_ PBOOLEAN OldValue,
|
||||
|
|
|
@ -357,7 +357,7 @@ RtlEncodeSystemPointer(IN PVOID Pointer)
|
|||
* http://www.geoffchappell.com/studies/windows/win32/ntdll/api/rtl/peb/setprocessiscritical.htm
|
||||
*/
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
__cdecl
|
||||
RtlSetProcessIsCritical(IN BOOLEAN NewValue,
|
||||
OUT PBOOLEAN OldValue OPTIONAL,
|
||||
IN BOOLEAN NeedBreaks)
|
||||
|
|
|
@ -158,7 +158,7 @@ RtlpFreeUserStack(IN HANDLE Process,
|
|||
* @implemented
|
||||
*/
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
__cdecl
|
||||
RtlSetThreadIsCritical(IN BOOLEAN NewValue,
|
||||
OUT PBOOLEAN OldValue OPTIONAL,
|
||||
IN BOOLEAN NeedBreaks)
|
||||
|
|
Loading…
Reference in a new issue