Sfoglia il codice sorgente

rtl/objpas/classes/classes.inc, TThread:
* Synchronize: fill the syncentry using the correct size

git-svn-id: trunk@33879 -

svenbarth 9 anni fa
parent
commit
dc5d9c7001
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      rtl/objpas/classes/classes.inc

+ 1 - 1
rtl/objpas/classes/classes.inc

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