mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:39:36 +02:00
* fixed possible overflow when getting video mode
git-svn-id: trunk@4456 -
This commit is contained in:
parent
22146e2bcf
commit
f8bdc64a96
@ -245,7 +245,7 @@ end;
|
||||
Function SysGetVideoModeData (Index : Word; Var Data : TVideoMode) : boolean;
|
||||
|
||||
begin
|
||||
SysGetVideoModeData:=(Index<=SysVideoModeCount);
|
||||
SysGetVideoModeData:=(Index<=high(SysVMD));
|
||||
If SysGetVideoModeData then
|
||||
Data:=SysVMD[Index];
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user