installationservices/swi/source/sisregistry/server/sisregistryserversession.cpp
changeset 67 3a625661d1ce
parent 60 245df5276b97
child 76 f36d4ce8961e
--- a/installationservices/swi/source/sisregistry/server/sisregistryserversession.cpp	Wed Aug 18 09:55:45 2010 +0300
+++ b/installationservices/swi/source/sisregistry/server/sisregistryserversession.cpp	Thu Sep 02 20:34:03 2010 +0300
@@ -1133,7 +1133,7 @@
         if (a[0] == '!')
             {
             TChar driveChar;
-            iFs.DriveToChar(EDriveZ, driveChar);
+            User::LeaveIfError(iFs.DriveToChar(EDriveZ, driveChar));
             a[0] = driveChar;
             }
 
@@ -1216,7 +1216,7 @@
                         if (a[0] == '!')
                             {
                             TChar driveChar;
-                            iFs.DriveToChar(EDriveZ, driveChar);
+                            User::LeaveIfError(iFs.DriveToChar(EDriveZ, driveChar));
                             a[0] = driveChar;
                             }                        
                        
@@ -1328,7 +1328,11 @@
 	        {
 	        // First boot detected. Add the first boot marker file as well as the format marker on the drive.
 	        SisRegistryUtil::CreateFileWithAttributesL(iFs, firstBootMarkerFilePath);
-	        SisRegistryUtil::CreateFileWithAttributesL(iFs, formatMarkerPath, fileAttributes);
+	        TRAPD(err,SisRegistryUtil::CreateFileWithAttributesL(iFs, formatMarkerPath, fileAttributes);)
+			if (err != KErrNone && err != KErrAlreadyExists)
+				{
+				User::Leave(err);
+				}   
 	        }
 	    else
 	        {