Skip to content

Commit

Permalink
Found bug in test? check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ironfede committed Oct 2, 2024
1 parent 75acb04 commit 4b11ef5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/OpenMcdf/CompoundFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1772,12 +1772,12 @@ public void SaveAs(string fileName)
{
Debug.WriteLine("Path is NOT rooted");
Debug.WriteLine("Filename:"+ fileName);
Debug.WriteLine("Filename modified:"+ (Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\" + fileName));
Debug.WriteLine("Filename modified:"+ (Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + Path.DirectorySeparatorChar + fileName));
Debug.WriteLine("Directory name:"+ Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));
Debug.WriteLine("Stream name:"+ stream.Name);
Debug.WriteLine("Stream name equals filename? :" + (stream.Name == (Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\" + fileName)));
Debug.WriteLine("Stream name equals filename? :" + (stream.Name == (Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + Path.DirectorySeparatorChar + fileName)));

if (stream.Name == (Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\" + fileName))
if (stream.Name == (Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + Path.DirectorySeparatorChar + fileName))
{
Debug.WriteLine("-> Filename equals stream name:");

Expand Down

0 comments on commit 4b11ef5

Please sign in to comment.