Fix RtlCriticalSection dummy calls in ntoskrnl's libsupp, for consistency with previous patch and correctness of types.

svn path=/trunk/; revision=12771
This commit is contained in:
Alex Ionescu 2005-01-03 23:35:02 +00:00
parent 57cef8643d
commit abd7686a78

View file

@ -14,83 +14,73 @@
#define NDEBUG #define NDEBUG
#include <internal/debug.h> #include <internal/debug.h>
//FIXME: sort this out somehow //FIXME: sort this out somehow. IAI: Sorted in new header branch
#define PCRITICAL_SECTION PVOID #define PRTL_CRITICAL_SECTION PVOID
#define LPCRITICAL_SECTION PVOID
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
/* NTSTATUS
* @implemented STDCALL
*/ RtlDeleteCriticalSection(
VOID STDCALL PRTL_CRITICAL_SECTION CriticalSection)
RtlDeleteCriticalSection(PCRITICAL_SECTION CriticalSection)
{ {
return STATUS_SUCCESS;
} }
/* DWORD
* @implemented STDCALL
*/
DWORD STDCALL
RtlSetCriticalSectionSpinCount( RtlSetCriticalSectionSpinCount(
LPCRITICAL_SECTION CriticalSection, PRTL_CRITICAL_SECTION CriticalSection,
DWORD SpinCount DWORD SpinCount
) )
{ {
return 0; return 0;
} }
NTSTATUS
/* STDCALL
* @implemented RtlEnterCriticalSection(
*/ PRTL_CRITICAL_SECTION CriticalSection)
VOID STDCALL
RtlEnterCriticalSection(PCRITICAL_SECTION CriticalSection)
{ {
ExAcquireFastMutex((PFAST_MUTEX) CriticalSection ); ExAcquireFastMutex((PFAST_MUTEX) CriticalSection);
return STATUS_SUCCESS;
} }
NTSTATUS
/* STDCALL
* @implemented RtlInitializeCriticalSection(
*/ PRTL_CRITICAL_SECTION CriticalSection)
NTSTATUS STDCALL
RtlInitializeCriticalSection(PCRITICAL_SECTION CriticalSection)
{ {
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection ); ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
NTSTATUS
/* STDCALL
* @implemented RtlLeaveCriticalSection(
*/ PRTL_CRITICAL_SECTION CriticalSection)
VOID STDCALL
RtlLeaveCriticalSection(PCRITICAL_SECTION CriticalSection)
{ {
ExReleaseFastMutex((PFAST_MUTEX) CriticalSection ); ExReleaseFastMutex((PFAST_MUTEX) CriticalSection );
return STATUS_SUCCESS;
} }
/* BOOLEAN
* @implemented STDCALL
*/ RtlTryEnterCriticalSection(
BOOLEAN STDCALL PRTL_CRITICAL_SECTION CriticalSection)
RtlTryEnterCriticalSection(PCRITICAL_SECTION CriticalSection)
{ {
return ExTryToAcquireFastMutex((PFAST_MUTEX) CriticalSection ); return ExTryToAcquireFastMutex((PFAST_MUTEX) CriticalSection );
} }
/* NTSTATUS
* @implemented STDCALL
*/ RtlInitializeCriticalSectionAndSpinCount(
NTSTATUS STDCALL PRTL_CRITICAL_SECTION CriticalSection,
RtlInitializeCriticalSectionAndSpinCount ( ULONG SpinCount)
PCRITICAL_SECTION CriticalSection,
ULONG SpinCount)
{ {
ExInitializeFastMutex((PFAST_MUTEX)CriticalSection ); ExInitializeFastMutex((PFAST_MUTEX)CriticalSection );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
/* EOF */ /* EOF */