webengine/widgetinstaller/Src/WidgetInstaller.cpp
branchRCL_3
changeset 64 ac77f89b1d9e
parent 59 1f3c3f2f5b0a
child 91 30342f40acbf
--- a/webengine/widgetinstaller/Src/WidgetInstaller.cpp	Wed Mar 31 23:16:40 2010 +0300
+++ b/webengine/widgetinstaller/Src/WidgetInstaller.cpp	Wed Apr 14 17:06:56 2010 +0300
@@ -64,7 +64,7 @@
 _LIT( KWidgetAppDir, "\\private\\10282822\\" );
 _LIT( KBackSlash, "\\" );
 // todo: other keystring.dat for preference
-_LIT(KWidgetPref, "prefs.dat");
+_LIT(KWidgetPref, "prefs.dat*");
 
 
 // =========================== MEMBER FUNCTIONS ===============================
@@ -776,9 +776,14 @@
 
     //////////////////////////////////////////////////////////////////////////////////////////////////
     // delete "\private\[WidgetUIUid]\bundleID\prefs.dat"
+    CFileMan* fileManager = CFileMan::NewL( iRfs );
+    CleanupStack::PushL( fileManager );
+    	 
     TFileName   widgetPref( *newDir );
     widgetPref.Append(KWidgetPref);
-    err = iRfs.Delete( widgetPref );
+    
+	err = fileManager->Delete(widgetPref);
+    CleanupStack::PopAndDestroy( fileManager );  // fileMananger       	
     // it's ok not to have pref.dat
     if( err != KErrNone && err != KErrNotFound )
         {