Skip to content

Commit

Permalink
Seek stream before loading icon (#14830)
Browse files Browse the repository at this point in the history
* Seek stream before loading icon

* oops
  • Loading branch information
hez2010 authored Mar 6, 2024
1 parent affa733 commit 0759b3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Windows/Avalonia.Win32/Win32Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public IWindowIconImpl LoadIcon(IBitmapImpl bitmap)
using (var memoryStream = new MemoryStream())
{
bitmap.Save(memoryStream);
memoryStream.Seek(0, SeekOrigin.Begin);
return new IconImpl(memoryStream);
}
}
Expand Down

0 comments on commit 0759b3d

Please sign in to comment.