LCL: Icon.LoadFromResourceName(hModule,'MAINICON') always load resource from EXE but never from DLL
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Resource always loaded from main executable module instead of module specified by handle.
Windows is OK, since it has native resource enumerator/loaders.
Steps to reproduce:
Under Linux.
Compile the attached project a.lpi - the .SO would be produced.
Compile the attached project project1 - run it
* Run the ./project1
* From Open dialog select the liba.so
* If the .SO loaded successfully - the Icon should load the 'MAINICON' resource
* In the case of success the icon wit cat should appear.
* In the case of failure - icon from exe module representing spider appears.
Additional information:
Maybe it is FPC bug but not LCL.
Mantis conversion info:
- Mantis ID: 17805
- OS: Debian GNU/Linux
- OS Build: 5.1
- Platform: x86_64
- Fixed in version: 3.1.1
- Fixed in revision: 30574 (#0c76b8e6)
- Target version: 3.0.0