From ecb34fb8dadff37397cfedf8ee1e3a69f214f2b3 Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 20 Mar 2012 18:53:38 +0000 Subject: [PATCH] * Patches from Ludo Brands for typelib - Mantis #21516 fix range check error - Mantis #21513 Specific workaround for potentially bugged Office10/MSacc.OLB git-svn-id: trunk@20544 - --- packages/winunits-base/src/typelib.pas | 30 ++++++++++++++------------ 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/winunits-base/src/typelib.pas b/packages/winunits-base/src/typelib.pas index 340a177e6b..db31130a2a 100644 --- a/packages/winunits-base/src/typelib.pas +++ b/packages/winunits-base/src/typelib.pas @@ -475,6 +475,14 @@ var end; end; + function GetName(i:integer):string; //bug in Office10\MSacc.OLB _WizHook.Key + begin + if i0) then sl:=sl+'+'#13#10; end; - sl:=format('LazarusResources.Add(''T%s'',''BMP'',['#13#10,[BstrName]) + sl:=format('LazarusResources.Add(''TAxc%s'',''BMP'',['#13#10,[BstrName]) + sl + #13#10']);'#13#10; FAXImages.Add(sl); end;