mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 17:59:22 +02:00
LCL-Gtk2: Call SetExceptionMask for all CPUs, not only for x86 (thus unify it with other widgetsets). Fixes crashes on AArch64, issue #41188.
This commit is contained in:
parent
6feb18f05a
commit
7cfcb81528
@ -1143,12 +1143,10 @@ function gdk_screen_get_resolution(screen:PGdkScreen):gdouble; cdecl; external g
|
|||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
procedure TGtk2WidgetSet.AppInit(var ScreenInfo: TScreenInfo);
|
procedure TGtk2WidgetSet.AppInit(var ScreenInfo: TScreenInfo);
|
||||||
begin
|
begin
|
||||||
{$if defined(cpui386) or defined(cpux86_64)}
|
|
||||||
// needed otherwise some gtk theme engines crash with division by zero
|
// needed otherwise some gtk theme engines crash with division by zero
|
||||||
{$IFNDEF DisableGtkDivZeroFix}
|
{$IFNDEF DisableGtkDivZeroFix}
|
||||||
SetExceptionMask(GetExceptionMask + [exOverflow,exZeroDivide,exInvalidOp]);
|
SetExceptionMask(GetExceptionMask + [exOverflow,exZeroDivide,exInvalidOp]);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$ifend}
|
|
||||||
|
|
||||||
InitKeyboardTables;
|
InitKeyboardTables;
|
||||||
{ Compute pixels per inch variable }
|
{ Compute pixels per inch variable }
|
||||||
|
Loading…
Reference in New Issue
Block a user