Fixed wrong file offset check
authorpkanavos <pkanavos@gmail.com>
Fri, 23 Mar 2012 06:15:26 +0000 (08:15 +0200)
committerpkanavos <pkanavos@gmail.com>
Fri, 23 Mar 2012 06:15:26 +0000 (08:15 +0200)
trunk/Pithos.Client.WPF/App.xaml.cs
trunk/Pithos.Client.WPF/Properties/AssemblyInfo.cs
trunk/Pithos.Core/Agents/BlockExtensions.cs

index 6fb9e80..2fa7f95 100644 (file)
@@ -214,7 +214,7 @@ namespace Pithos.Client.WPF
             var description = e.IsTerminating
                               ? WPF.Properties.Resources.Unexpected_Error_Terminating
                               : WPF.Properties.Resources.Unexpected_Error;
-            var message = String.Format(@"{0}\r\n{1}\r\n\r\n{2}",
+            var message = String.Format(@"{0}<LineBreak/>{1}<LineBreak/><LineBreak/>{2}",
                 description,
                 WPF.Properties.Resources.We_Apologize,
                 WPF.Properties.Resources.Please_Submit_Error);
index 8d9cf0e..da884a2 100644 (file)
@@ -56,7 +56,7 @@ using System.Windows;
 [assembly: AssemblyCopyright("Copyright © GRNet 2011-2012")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
-[assembly: AssemblyInformationalVersion("2012-03-20")]
+[assembly: AssemblyInformationalVersion("2012-03-23")]
 
 // Setting ComVisible to false makes the types in this assembly not visible 
 // to COM components.  If you need to access a type in this assembly from 
@@ -93,5 +93,5 @@ using System.Windows;
 // You can specify all the values or you can default the Build and Revision Numbers 
 // by using the '*' as shown below:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.7.20314.0")]
-[assembly: AssemblyFileVersionAttribute("0.7.20314.0")]
+[assembly: AssemblyVersion("0.7.20315.0")]
+[assembly: AssemblyFileVersionAttribute("0.7.20315.0")]
index 9418b2a..04b4996 100644 (file)
@@ -58,7 +58,7 @@ namespace Pithos.Core.Agents
 
         public static int Read(this FileInfo fileInfo,byte[] buffer,long offset,int count)
         {
-            if (offset <= 0)
+            if (offset < 0)
                 throw new ArgumentOutOfRangeException("offset", offset, "The file offset can't be negative");
             Contract.EndContractBlock();
             //Open the stream only long enough to read a block