mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 10:50:59 +02:00
* Ignore an error returned by UnRegisterTypeLib() to allow successful un-registration of whole COM object if type library is not registered atm.
git-svn-id: trunk@22656 -
This commit is contained in:
parent
66872fafa2
commit
91988e611a
@ -207,7 +207,7 @@ begin
|
||||
//http://www.experts-exchange.com/Programming/Misc/Q_20634807.html
|
||||
OleCheck(TypeLib.GetLibAttr(ptla));
|
||||
try
|
||||
OleCheck(ActiveX.UnRegisterTypeLib(ptla^.guid, ptla^.wMajorVerNum, ptla^.wMinorVerNum, ptla^.lcid, ptla^.syskind));
|
||||
ActiveX.UnRegisterTypeLib(ptla^.guid, ptla^.wMajorVerNum, ptla^.wMinorVerNum, ptla^.lcid, ptla^.syskind);
|
||||
finally
|
||||
TypeLib.ReleaseTLibAttr(ptla);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user