Merged revision(s) 48941 #ae10af0c87 from trunk:

Win32: fixed range check error.Patch by Petr-K. issue #28039
........

git-svn-id: branches/fixes_1_4@48953 -
This commit is contained in:
maxim 2015-05-06 22:35:10 +00:00
parent f9b2ee6b61
commit b4de795627

View File

@ -342,7 +342,7 @@ begin
begin
TCI.Mask := TCIF_TEXT or TCIF_PARAM or TCIF_IMAGE;
// store object as extra, so we can verify we got the right page later
TCI.lParam := PtrUInt(AChild);
TCI.lParam := PtrInt(AChild);
TCI.iImage := ATabControl.GetImageIndex(ATabControl.TabToPageIndex(AIndex));
{$ifdef WindowsUnicodeSupport}
if UnicodeEnabledOS then