homescreenpluginsrv/hspsmanager/src/hspsinstallationhandler.cpp
changeset 2 b7904b40483f
parent 0 79c6a41cd166
child 9 d0529222e3f0
--- a/homescreenpluginsrv/hspsmanager/src/hspsinstallationhandler.cpp	Thu Jan 07 12:55:39 2010 +0200
+++ b/homescreenpluginsrv/hspsmanager/src/hspsinstallationhandler.cpp	Mon Jan 18 20:32:13 2010 +0200
@@ -2233,7 +2233,7 @@
 #ifdef HSPS_LOG_ACTIVE  
         if( iLogBus )
             {
-            iLogBus->LogText( _L( "ChspsInstallationHandler::AddLocalizedResourcesL(): - DTD file was not found '%S'" ),
+            iLogBus->LogText( _L( "ChspsInstallationHandler::AddLocalizedResourcesDTDV2L(): - DTD file was not found '%S'" ),
                     &dtdPath );
             }
 #endif            
@@ -2507,10 +2507,14 @@
         resourcePath->Des().Append( resource->FileName() );
         
         TDataType dataType( resource->MimeType() );
+        
         TPtrC8 tagsPtr;
-        if ( iResourceTag )
+        HBufC8* tagBuf8 = NULL;
+        if ( resource->Tags().Length() )
             {
-            tagsPtr.Set( iResourceTag->Des() );
+            tagBuf8 = HBufC8::NewLC( resource->Tags().Length() );
+            tagBuf8->Des().Copy( resource->Tags() );
+            tagsPtr.Set( tagBuf8->Des() );            
             }
         
         // Add localized files into the resource array
@@ -2523,6 +2527,11 @@
             tagsPtr
             );
         
+        if ( tagBuf8 )
+            {
+            CleanupStack::PopAndDestroy( tagBuf8 );
+            }
+        
         CleanupStack::PopAndDestroy( resourcePath );
         }