Browse Source

* 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 -
yury 13 years ago
parent
commit
91988e611a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/winunits-base/src/comserv.pp

+ 1 - 1
packages/winunits-base/src/comserv.pp

@@ -207,7 +207,7 @@ begin
   //http://www.experts-exchange.com/Programming/Misc/Q_20634807.html
   //http://www.experts-exchange.com/Programming/Misc/Q_20634807.html
   OleCheck(TypeLib.GetLibAttr(ptla));
   OleCheck(TypeLib.GetLibAttr(ptla));
   try
   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
   finally
     TypeLib.ReleaseTLibAttr(ptla);
     TypeLib.ReleaseTLibAttr(ptla);
   end;
   end;