[GME-commit] GMESRC/GME/MgaUtil MgaRegistrar.cpp,1.47,1.48

Log messages of CVS commits gme-commit at list.isis.vanderbilt.edu
Mon Feb 4 16:30:37 CST 2008


Update of /project/gme-repository/GMESRC/GME/MgaUtil
In directory escher:/tmp/cvs-serv22308

Modified Files:
	MgaRegistrar.cpp 
Log Message:
Infinite loop upon UnregisterComponentLibrary(BSTR path, regaccessmode_enum mode) calls.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: MgaRegistrar.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/MgaRegistrar.cpp,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** MgaRegistrar.cpp	7 Mar 2007 21:11:57 -0000	1.47
--- MgaRegistrar.cpp	4 Feb 2008 22:30:35 -0000	1.48
***************
*** 2372,2379 ****
  
  		UINT index = typelib->GetTypeInfoCount();
! 		while( --index >= 0 )
  		{
  			CComObjPtr<ITypeInfo> typeinfo;
! 			COMTHROW( typelib->GetTypeInfo(index, PutOut(typeinfo)) );
  
  			TYPEATTR *typeattr = NULL;
--- 2372,2380 ----
  
  		UINT index = typelib->GetTypeInfoCount();
! 		while( index) //WAS: while( --index >= 0 ) // was an infinite loop with UINT
  		{
+ 			--index;
  			CComObjPtr<ITypeInfo> typeinfo;
! 			COMTHROW( typelib->GetTypeInfo(index, PutOut(typeinfo)) );// index parameter with the range of 0 to GetTypeInfoCount() –1.
  
  			TYPEATTR *typeattr = NULL;



More information about the GME-commit mailing list