mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 15:40:16 +02:00
* Patch by C Western to fix use of uninitialized lock (bug ID 31682
git-svn-id: trunk@35879 -
This commit is contained in:
parent
6252a02fe1
commit
80c510b4aa
@ -653,7 +653,8 @@ begin
|
||||
try
|
||||
MsgItem:=FQueue.Pop;
|
||||
finally
|
||||
LeaveCriticalsection(FLock);
|
||||
if DoLock then
|
||||
LeaveCriticalsection(FLock);
|
||||
end;
|
||||
Result:=Assigned(MsgItem);
|
||||
if Result then
|
||||
|
Loading…
Reference in New Issue
Block a user