Reverted latest changes.
[reactos.git] / reactos / lib / kernel32 / synch / critical.c
1 /* $Id: critical.c,v 1.12 2002/09/08 10:22:45 chorns Exp $
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 <windows.h>
14
15 #include <kernel32/kernel32.h>
16
17
18 /* FUNCTIONS *****************************************************************/
19
20 VOID STDCALL
21 InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
22 {
23 NTSTATUS Status;
24
25 Status = RtlInitializeCriticalSection(lpCriticalSection);
26 if (!NT_SUCCESS(Status))
27 {
28 RtlRaiseStatus(Status);
29 }
30 }
31
32 /* EOF */