From 77f08f330eda0ae4b69464851c3b0c9895e2e9da Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Thu, 15 Apr 1999 16:42:50 +0000 Subject: [PATCH] UnitializeCriticalSection partial stub implementation. --- relay32/kernel32.spec | 2 +- scheduler/critsection.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index 0dd85ab1090..0df6d3aed24 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -719,7 +719,7 @@ init MAIN_KernelInit 700 stdcall UnMapLS(long) UnMapLS 701 register UnMapSLFixArray() UnMapSLFixArray 702 stdcall UnhandledExceptionFilter(ptr) UnhandledExceptionFilter -703 stub UninitializeCriticalSection +703 stdcall UninitializeCriticalSection(ptr) UninitializeCriticalSection 704 stdcall UnlockFile(long long long long long) UnlockFile 705 stub UnlockFileEx 706 stdcall UnmapViewOfFile(ptr) UnmapViewOfFile diff --git a/scheduler/critsection.c b/scheduler/critsection.c index 28ea1f82933..1fe59436566 100644 --- a/scheduler/critsection.c +++ b/scheduler/critsection.c @@ -134,3 +134,13 @@ void WINAPI ReinitializeCriticalSection( CRITICAL_SECTION *crit ) DeleteCriticalSection( crit ); InitializeCriticalSection( crit ); } + + +/*********************************************************************** + * UninitializeCriticalSection (KERNEL32.703) + */ +void WINAPI UninitializeCriticalSection( CRITICAL_SECTION *crit ) +{ + FIXME(win32, "(%p) half a stub\n", crit); + DeleteCriticalSection( crit ); +}