skins/AknSkins/srvsrc/AknsSrvUtils.cpp
branchRCL_3
changeset 107 9f95a5546443
parent 106 e4e3998ddda2
--- a/skins/AknSkins/srvsrc/AknsSrvUtils.cpp	Tue Aug 31 16:13:36 2010 +0300
+++ b/skins/AknSkins/srvsrc/AknsSrvUtils.cpp	Wed Sep 01 12:19:53 2010 +0100
@@ -24,7 +24,7 @@
 #include <DRMRights.h>
 
 #include <DRMHelper.h>
-#include <caf/cafplatform.h>
+#include <caf/caf.h>
 #include <caf/rightsinfo.h>
 
 #include "AknsSrvUtils.h"
@@ -933,7 +933,10 @@
         TInt bsLoc = path.LocateReverse( backslash );
 
         // Append skin PID to the directory.
-        bufferPtr.Append( fileName.Path().Mid( bsLoc ) );
+        if ( KErrNotFound != bsLoc )
+            {
+            bufferPtr.Append( fileName.Path().Mid( bsLoc ) );
+            }
 
         if ( fileName.ExtPresent() )
             {