Author: cwittich
Date: Thu Sep 3 11:22:11 2015
New Revision: 68932
URL:
http://svn.reactos.org/svn/reactos?rev=68932&view=rev
Log:
[WS2_32] leave critical section in error case CID 716028
Modified:
trunk/reactos/dll/win32/ws2_32/misc/handle.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/handle.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/hand…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/handle.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/handle.c [iso-8859-1] Thu Sep 3 11:22:11 2015
@@ -251,10 +251,11 @@
Provider = DeleteProviderHandle(ProviderHandleTable,
Handle);
+
+ LeaveCriticalSection(&ProviderHandleTableLock);
+
if (!Provider)
return FALSE;
-
- LeaveCriticalSection(&ProviderHandleTableLock);
DereferenceProviderByPointer(Provider);