[Helix-client-dev] CR: Corrupt Registry Bugs

Bryan Holzer <[email protected]> Thu, 8 Jul 2010 15:25:45 -0700
Newsgroups gmane.comp.multimedia.helix.devel
Message-ID <[email protected]>
Synopsis

========

Producer does not work correctly if the registry is corrupted, this fixes that

Suggested Reviewer: anyone

Branches: HEAD

  

Description

===========

*If a fast load of the plugins fails, then a slow load is run instead 
which rebuilds the registry

Files affected

==============

client/common/container/plghand2.cpp

diff attached

_______________________________________________
Helix-client-dev mailing list
[email protected]
http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev
plghand2.diff (text/plain, 1.1 KB)
? Makefile
? NMakefil
? SMakefil
? Umakefil.upp
? client_common_container.sln
? client_common_container.vcproj
? client_common_container_nmakefil.ncb
? client_common_container_nmakefil.sln
? client_common_container_nmakefil.suo
? client_common_container_nmakefil.vcproj
? client_common_container_nmakefil.vcproj.bholzer-PC.bholzer.user
? client_common_container_smakefil.sln
? client_common_container_smakefil.vcproj
? client_common_container_smakefil.vcproj.bholzer-PC.bholzer.user
? dbg32
? dbg32s
? plghand2.diff
Index: plghand2.cpp
===================================================================
RCS file: /cvsroot/client/common/container/plghand2.cpp,v
retrieving revision 1.68
diff -u -w -r1.68 plghand2.cpp
--- plghand2.cpp	18 May 2010 17:52:35 -0000	1.68
+++ plghand2.cpp	8 Jul 2010 22:19:11 -0000
@@ -2195,6 +2195,14 @@
         if( zm_bFasterPrefs )
         {
             result = ReadPluginInfoFast( pMountPoint );
+			
+			#ifdef HELIX_FEATURE_PRODUCER
+			if (FAILED(result))
+			{
+				m_FileNameMap.RemoveAll();
+				result = ReadPluginInfoSlow( pMountPoint );
+			}
+			#endif
         }
         else
         {