mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-05 00:20:16 -04:00
WIP Lib version 2.39.1
This commit is contained in:
@@ -136,7 +136,7 @@ namespace ModernKeePassLib.Collections
|
||||
return false;
|
||||
}
|
||||
|
||||
if(ps.ReadString() != kvp.Value.ReadString()) return false;
|
||||
if(!ps.Equals(kvp.Value, false)) return false;
|
||||
}
|
||||
|
||||
if(bNeEqStd)
|
||||
@@ -292,12 +292,7 @@ namespace ModernKeePassLib.Collections
|
||||
if(ps == null) return; // Nothing to do, no assert
|
||||
|
||||
if(ps.IsProtected != bProtect)
|
||||
{
|
||||
byte[] pbData = ps.ReadUtf8();
|
||||
Set(strField, new ProtectedString(bProtect, pbData));
|
||||
|
||||
if(bProtect) MemUtil.ZeroByteArray(pbData);
|
||||
}
|
||||
Set(strField, ps.WithProtection(bProtect));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -352,6 +352,13 @@ namespace ModernKeePassLib.Collections
|
||||
m_vObjects.Sort(tComparer);
|
||||
}
|
||||
|
||||
public void Sort(Comparison<T> tComparison)
|
||||
{
|
||||
if(tComparison == null) throw new ArgumentNullException("tComparison");
|
||||
|
||||
m_vObjects.Sort(tComparison);
|
||||
}
|
||||
|
||||
public static PwObjectList<T> FromArray(T[] tArray)
|
||||
{
|
||||
if(tArray == null) throw new ArgumentNullException("tArray");
|
||||
|
Reference in New Issue
Block a user