mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Concurrent access
This commit is contained in:
parent
c1359a77c3
commit
b9b4a5559c
1 changed files with 7 additions and 2 deletions
|
|
@ -1285,8 +1285,13 @@ end;
|
|||
|
||||
function TWDXModule.FileParamVSDetectStr(const aFile: TFile): Boolean;
|
||||
begin
|
||||
FParser.DetectStr := Self.DetectStr;
|
||||
Result := FParser.TestFileResult(aFile);
|
||||
EnterCriticalSection(FMutex);
|
||||
try
|
||||
FParser.DetectStr := Self.DetectStr;
|
||||
Result := FParser.TestFileResult(aFile);
|
||||
finally
|
||||
LeaveCriticalsection(FMutex);
|
||||
end;
|
||||
end;
|
||||
|
||||
function TWDXModule.CallContentGetValueV(FileName: String; FieldName: String;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue