mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[PreviewPane] Enable analyzer and fix warnings (#16995)
This commit is contained in:
committed by
GitHub
parent
bf3e427017
commit
7365ba14d0
@@ -107,7 +107,7 @@ namespace Common.Utilities
|
||||
|
||||
if (buffer == null)
|
||||
{
|
||||
throw new NullReferenceException("buffer is null");
|
||||
throw new ArgumentNullException(nameof(buffer), "buffer is null");
|
||||
}
|
||||
|
||||
if (offset < 0 || count < 0 || (offset + count) > buffer.Length)
|
||||
|
||||
Reference in New Issue
Block a user