From 8a89db9d15fbab75f4dffcb9c5c7d491b641903f Mon Sep 17 00:00:00 2001 From: liuycsd Date: Fri, 16 Feb 2024 00:50:55 +0000 Subject: [PATCH] Open DiffSinger singer icon read-only --- OpenUtau.Core/DiffSinger/DiffSingerSinger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs b/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs index b3353dd9e..db02db87d 100644 --- a/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs +++ b/OpenUtau.Core/DiffSinger/DiffSingerSinger.cs @@ -55,7 +55,7 @@ public DiffSingerSinger(Voicebank voicebank) { //Load Avatar if (Avatar != null && File.Exists(Avatar)) { try { - using (var stream = new FileStream(Avatar, FileMode.Open)) { + using (var stream = new FileStream(Avatar, FileMode.Open, FileAccess.Read)) { using (var memoryStream = new MemoryStream()) { stream.CopyTo(memoryStream); avatarData = memoryStream.ToArray();