mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 13:29: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,6 +653,7 @@ begin
|
|||||||
try
|
try
|
||||||
MsgItem:=FQueue.Pop;
|
MsgItem:=FQueue.Pop;
|
||||||
finally
|
finally
|
||||||
|
if DoLock then
|
||||||
LeaveCriticalsection(FLock);
|
LeaveCriticalsection(FLock);
|
||||||
end;
|
end;
|
||||||
Result:=Assigned(MsgItem);
|
Result:=Assigned(MsgItem);
|
||||||
|
Loading…
Reference in New Issue
Block a user