mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
WIP Lib version 2.39.1
This commit is contained in:
@@ -129,9 +129,12 @@ namespace ModernKeePassLib.Serialization
|
||||
{
|
||||
s = IOConnection.OpenRead(iocLockFile);
|
||||
if(s == null) return null;
|
||||
StreamReader sr = new StreamReader(s, StrUtil.Utf8);
|
||||
string str = sr.ReadToEnd();
|
||||
sr.Dispose();
|
||||
|
||||
string str = null;
|
||||
using(StreamReader sr = new StreamReader(s, StrUtil.Utf8))
|
||||
{
|
||||
str = sr.ReadToEnd();
|
||||
}
|
||||
if(str == null) { Debug.Assert(false); return null; }
|
||||
|
||||
str = StrUtil.NormalizeNewLines(str, false);
|
||||
|
Reference in New Issue
Block a user