rtl/objpas/classes/classes.inc, TThread:

* Synchronize: fill the syncentry using the correct size

git-svn-id: trunk@33879 -
This commit is contained in:
svenbarth 2016-06-02 18:48:41 +00:00
parent 20807f4148
commit dc5d9c7001

View File

@ -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