[BUG] Fix datatype for SHGetFileInfo preventing stack corruption

This commit is contained in:
Peter Kirmeier 2020-10-11 00:28:34 +02:00
parent 808ab532c9
commit 5bb592c066
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ namespace SystemTrayMenu.DllImports
uint cbFileInfo,
uint uFlags);
[StructLayout(LayoutKind.Sequential)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct SHFILEINFO
{
public const int NAMESIZE = 80;

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.16.2")]
[assembly: AssemblyFileVersion("1.0.16.2")]
[assembly: AssemblyVersion("1.0.16.3")]
[assembly: AssemblyFileVersion("1.0.16.3")]