fcl-image: TFPCustomImage.LoadFromStream fixes
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
There are 3 issues in TFPCustomImage.LoadFromStream code:
1.) msg is not initialized
2.) msg is not cleared before break (theoretically it can be assigned to a valid error message in previous loop run).
3.) if d is not assigned, h keeps value from previous loop run - or even worse is unassigned in case of first loop run.
Additional information:
The attached patch fixed these issues.
Mantis conversion info:
- Mantis ID: 33956
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 39417 (#69165337)
- Target version: 3.2.0