mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 07:36:19 +02:00
LCL: fixed range check on win
git-svn-id: trunk@32372 -
This commit is contained in:
parent
9c295a44e2
commit
a9a3e13ff5
@ -981,7 +981,7 @@ end;
|
||||
|
||||
class function TWin32WSCustomListView.GetHeader(const AHandle: THandle): THandle;
|
||||
begin
|
||||
Result := SendMessage(AHandle, LVM_GETHEADER, 0, 0);
|
||||
Result := THandle(SendMessage(AHandle, LVM_GETHEADER, 0, 0));
|
||||
if Result <> 0 then Exit;
|
||||
|
||||
// probably old version, try the first child
|
||||
|
Loading…
Reference in New Issue
Block a user