LCL: fixed range check on win

git-svn-id: trunk@32372 -
This commit is contained in:
martin 2011-09-16 22:36:01 +00:00
parent 9c295a44e2
commit a9a3e13ff5

View File

@ -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