update for HEAD-2003091401
[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 /*
22  * @implemented
23  */
24 VOID STDCALL
25 InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
26 {
27    NTSTATUS Status;
28
29    Status = RtlInitializeCriticalSection(lpCriticalSection);
30    if (!NT_SUCCESS(Status))
31      {
32         RtlRaiseStatus(Status);
33      }
34 }
35
36 /* EOF */