possible bug: geninspeccode

"Tobias Oberstein" <[email protected]> Mon, 3 Feb 2003 22:30:00 +0100
Newsgroups gmane.comp.db.sapdb.sources
Message-ID <[email protected]>
I suspect there maybe a bug in "geninspeccode"

It generates code for COM inspection within components deployed
in LC instances:


extern "C" void __stdcall Co_IntrospectMethod ( Co_AccessType   accessType,
                                      char            **lplpMethod,
                                      unsigned short  Num,
                                      unsigned short  *lpIdx,
                                      unsigned short  *lpParamCount,
                                      CO_INTROSPECTFUNCTION
*lplpIntrospecFunc )
{
  *lplpIntrospecFunc = NULL;
  if (accessType == get_by_name)
  {
  ...
  }
  else
  {
    if (( Num <= PROCEDURE_NUM ) && ( Num >= 0 ))
      {
      ...
      }
  }
};


I suppose there is an index bug .. it should read:

    if (( Num < PROCEDURE_NUM ) && ( Num >= 0 ))



However, I was unable to find the sources for "geninspeccode" so I'm not
100% sure.


Greets,
Tobias