branch update for HEAD-2003021201
[reactos.git] / lib / kernel32 / synch / critical.c
1 /* $Id$
2  *
3  * COPYRIGHT:       See COPYING in the top level directory
4  * PROJECT:         ReactOS system libraries
5  * FILE:            lib/kernel32/sync/critical.c
6  * PURPOSE:         Critical sections
7  * UPDATE HISTORY:
8  *                  Created 30/09/98
9  */
10
11 /* INCLUDES ******************************************************************/
12
13 #include <k32.h>
14
15 #define NDEBUG
16 #include <kernel32/kernel32.h>
17
18
19 /* FUNCTIONS *****************************************************************/
20
21 VOID STDCALL
22 InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
23 {
24    NTSTATUS Status;
25
26    Status = RtlInitializeCriticalSection(lpCriticalSection);
27    if (!NT_SUCCESS(Status))
28      {
29         RtlRaiseStatus(Status);
30      }
31 }
32
33 /* EOF */