mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 12:08:09 +02:00
AJ: fixed crash on win32
git-svn-id: trunk@3574 -
This commit is contained in:
parent
1c363120c3
commit
366cf1116f
@ -139,12 +139,13 @@ end;
|
||||
procedure TCustomTimer.UpdateTimer;
|
||||
begin
|
||||
KillTimer;
|
||||
if (FEnabled) and (FInterval > 0) and Assigned (FOnTimer) then
|
||||
if (FEnabled) and (FInterval > 0) and Assigned (FOnTimer) then begin
|
||||
FTimerHandle := LCLLinux.SetTimer(Integer(Self), 1,
|
||||
FInterval, @TimerCBProc);
|
||||
if FTimerHandle=0 then begin
|
||||
FTimerHandle:=cIdNoTimer;
|
||||
raise EOutOfResources.Create(SNoTimers);
|
||||
if FTimerHandle=0 then begin
|
||||
FTimerHandle:=cIdNoTimer;
|
||||
raise EOutOfResources.Create(SNoTimers);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user