typelib.pas writes uncompilable *_TLB.pas files
Original Reporter info from Mantis: JoshyFun @joshyfun
-
Reporter name: José Mejuto
Original Reporter info from Mantis: JoshyFun @joshyfun
- Reporter name: José Mejuto
Description:
importlib.pas generates wrong definitions for some functions like:
function (const :widestring): widestring; safecall;
instead
function (const Param1: widestring): widestring; safecall;
Attached patch fixes this bug and also fixes 2 uninitialized variables (a type not initialized, and a string resized but content not filled in case the DLL is not registered in the system).
Additional information:
Also removed 2 non used variables and changed one function parameter from "var xx: string" to "out xx: string" as the function always write the content of that variable.
Changes are quite small, so one simple patch file should be enought.
Mantis conversion info:
- Mantis ID: 26352
- OS: Windows
- OS Build: Seven
- Platform: x64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 28243 (#f0f62879)