mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 05:59:38 +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;
|
ListImg, DeviceImg: TLazIntfImage;
|
||||||
ImgHandle, MskHandle: HBitmap;
|
ImgHandle, MskHandle: HBitmap;
|
||||||
begin
|
begin
|
||||||
if (FCount = 0) or (Image = nil) then Exit;
|
if (Index < 0) or (Index >= FCount) or (Image = nil) then Exit;
|
||||||
|
|
||||||
GetRawImage(Index, RawImg);
|
GetRawImage(Index, RawImg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user