mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 18:25:58 +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;
|
Function SysGetVideoModeData (Index : Word; Var Data : TVideoMode) : boolean;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
SysGetVideoModeData:=(Index<=SysVideoModeCount);
|
SysGetVideoModeData:=(Index<=high(SysVMD));
|
||||||
If SysGetVideoModeData then
|
If SysGetVideoModeData then
|
||||||
Data:=SysVMD[Index];
|
Data:=SysVMD[Index];
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user