Skip to content

Commit

Permalink
Open DiffSinger singer icon read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
liuycsd committed Feb 16, 2024
1 parent d4b3cc2 commit 8a89db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenUtau.Core/DiffSinger/DiffSingerSinger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8a89db9

Please sign in to comment.