[Peek]Fix image aliasing (#32669)

This commit is contained in:
gokcekantarci
2024-05-10 16:17:08 +03:00
committed by GitHub
parent 72bd90b6d0
commit d9ef1357c9

View File

@@ -275,8 +275,8 @@ namespace Peek.FilePreviewer.Previewers
else else
{ {
var bitmap = new BitmapImage(); var bitmap = new BitmapImage();
await bitmap.SetSourceAsync(stream.AsRandomAccessStream());
Preview = bitmap; Preview = bitmap;
await bitmap.SetSourceAsync(stream.AsRandomAccessStream());
} }
}); });
}); });