Wrong variable type in GetControlText. Return of -1 leads to error.
Original Reporter info from Mantis: PascalR @PascalRiekenberg
-
Reporter name: Pascal Riekenberg
Original Reporter info from Mantis: PascalR @PascalRiekenberg
- Reporter name: Pascal Riekenberg
Description:
Wrong variable type in GetControlText.
If
TextLen := Windows.GetWindowTextLengthW(AHandle);
returns -1
SetLength(WideBuffer, TextLen);
probably leads to out of memory
Mantis conversion info:
- Mantis ID: 35637
- OS: Windows 10 x64
- OS Build: 1809
- Platform: i386
- Version: 2.0.3 (SVN)
- Fixed in revision: r61295 (#51dc36a7)