mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-19 16:59:58 +02:00
win32: fix range check error in TWin32ListStringList.GetObject
git-svn-id: trunk@17371 -
This commit is contained in:
parent
509b623bab
commit
2c2126066b
@ -10,7 +10,7 @@
|
||||
* *
|
||||
* This file is part of the Lazarus Component Library (LCL) *
|
||||
* *
|
||||
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
|
||||
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
|
||||
* for details about the copyright. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
@ -224,7 +224,7 @@ End;
|
||||
------------------------------------------------------------------------------}
|
||||
function TWin32ListStringList.GetObject(Index: Integer): TObject;
|
||||
Begin
|
||||
HWND(Result) := Windows.SendMessage(FWin32List, FFlagGetItemData, Index, 0);
|
||||
Result := TObject(PtrInt(Windows.SendMessage(FWin32List, FFlagGetItemData, Index, 0)));
|
||||
End;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user