tiny things

This commit is contained in:
chudov
2008-11-06 09:06:32 +00:00
parent 1144f9ddd4
commit 19f577b815

View File

@@ -486,6 +486,7 @@ namespace CUEToolsLib
{ {
StreamReader logReader = new StreamReader(Path.ChangeExtension(pathIn, ".log"), CUESheet.Encoding); StreamReader logReader = new StreamReader(Path.ChangeExtension(pathIn, ".log"), CUESheet.Encoding);
_eacLog = logReader.ReadToEnd(); _eacLog = logReader.ReadToEnd();
logReader.Close();
} }
catch { } catch { }
} }
@@ -2071,6 +2072,7 @@ namespace CUEToolsLib
} }
} }
} }
sr.Close();
} }
if (!foundAll || always) if (!foundAll || always)
@@ -2090,7 +2092,7 @@ namespace CUEToolsLib
audioFiles = newFiles.ToArray(); audioFiles = newFiles.ToArray();
break; break;
} }
audioFiles = Directory.GetFiles(dir, audioExts[i]); audioFiles = Directory.GetFiles(dir == "" ? "." : dir, audioExts[i]);
if (audioFiles.Length == filePos.Count) if (audioFiles.Length == filePos.Count)
{ {
break; break;