mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 23:20:33 +02:00
LCL: imglist: fix AV in GetBitmap if ImageIndex is invalid. Issue #33732
git-svn-id: trunk@57941 -
This commit is contained in:
parent
dd68a86a8e
commit
d1e2c7a8f0
@ -471,7 +471,7 @@ var
|
||||
ListImg, DeviceImg: TLazIntfImage;
|
||||
ImgHandle, MskHandle: HBitmap;
|
||||
begin
|
||||
if (FCount = 0) or (Image = nil) then Exit;
|
||||
if (Index < 0) or (Index >= FCount) or (Image = nil) then Exit;
|
||||
|
||||
GetRawImage(Index, RawImg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user