فهرست منبع

* Patch by C Western to fix use of uninitialized lock (bug ID 31682

git-svn-id: trunk@35879 -
michael 8 سال پیش
والد
کامیت
80c510b4aa
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      packages/fcl-process/src/simpleipc.pp

+ 2 - 1
packages/fcl-process/src/simpleipc.pp

@@ -653,7 +653,8 @@ begin
   try
     MsgItem:=FQueue.Pop;
   finally
-    LeaveCriticalsection(FLock);
+    if DoLock then
+      LeaveCriticalsection(FLock);
   end;
   Result:=Assigned(MsgItem);
   if Result then