mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: ELayoutException: Position range overflow (issue #736)
This commit is contained in:
parent
873d4fcd5c
commit
c968b0de67
1 changed files with 7 additions and 0 deletions
|
|
@ -4046,6 +4046,13 @@ end;
|
|||
|
||||
procedure TfrmMain.WMSize(var message: TLMSize);
|
||||
begin
|
||||
// https://github.com/doublecmd/doublecmd/issues/736
|
||||
if (Message.Width > High(Int16)) or (Message.Height > High(Int16)) then
|
||||
begin
|
||||
DCDebug('TfrmMain.WMSize invalid size %u x %u', [Message.Width, Message.Height]);
|
||||
Exit;
|
||||
end;
|
||||
|
||||
inherited WMSize(Message);
|
||||
|
||||
if not (csDestroying in ComponentState) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue