mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 11:48:34 +02:00
rtl/objpas/classes/classes.inc, TThread:
* Synchronize: fill the syncentry using the correct size git-svn-id: trunk@33879 -
This commit is contained in:
parent
20807f4148
commit
dc5d9c7001
@ -342,7 +342,7 @@ class procedure TThread.Synchronize(AThread: TThread; AMethod: TThreadMethod);
|
||||
if not Assigned(AThread) then begin
|
||||
{ use a local synchronize event }
|
||||
New(syncentry);
|
||||
FillChar(syncentry^, SizeOf(syncentry), 0);
|
||||
FillChar(syncentry^, SizeOf(TThreadQueueEntry), 0);
|
||||
syncentry^.ThreadID := GetCurrentThreadID;
|
||||
syncentry^.SyncEvent := RtlEventCreate;
|
||||
end else begin
|
||||
|
Loading…
Reference in New Issue
Block a user