mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
[KERNEL32]
- release PEB lock for each code path svn path=/trunk/; revision=52837
This commit is contained in:
parent
d5534dc11d
commit
a28b6b7837
1 changed files with 3 additions and 0 deletions
|
@ -1065,6 +1065,7 @@ TlsFree(IN DWORD Index)
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
BaseSetLastNTError(STATUS_INVALID_PARAMETER);
|
BaseSetLastNTError(STATUS_INVALID_PARAMETER);
|
||||||
|
RtlReleasePebLock();
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1075,10 +1076,12 @@ TlsFree(IN DWORD Index)
|
||||||
{
|
{
|
||||||
/* Fail */
|
/* Fail */
|
||||||
BaseSetLastNTError(STATUS_INVALID_PARAMETER);
|
BaseSetLastNTError(STATUS_INVALID_PARAMETER);
|
||||||
|
RtlReleasePebLock();
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Done! */
|
/* Done! */
|
||||||
|
RtlReleasePebLock();
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue