Author: jgardou
Date: Sun Jul 24 14:57:14 2011
New Revision: 52837
URL:
http://svn.reactos.org/svn/reactos?rev=52837&view=rev
Log:
[KERNEL32]
- release PEB lock for each code path
Modified:
trunk/reactos/dll/win32/kernel32/client/thread.c
Modified: trunk/reactos/dll/win32/kernel32/client/thread.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/thread.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/thread.c [iso-8859-1] Sun Jul 24 14:57:14
2011
@@ -1065,6 +1065,7 @@
if (!NT_SUCCESS(Status))
{
BaseSetLastNTError(STATUS_INVALID_PARAMETER);
+ RtlReleasePebLock();
return FALSE;
}
@@ -1075,10 +1076,12 @@
{
/* Fail */
BaseSetLastNTError(STATUS_INVALID_PARAMETER);
+ RtlReleasePebLock();
return FALSE;
}
/* Done! */
+ RtlReleasePebLock();
return TRUE;
}