#63: Fixed issue with string marshalling when loading icons for file system dialog.

This commit is contained in:
Damian Büchel 2020-12-21 11:31:22 +01:00
parent 30c9c244f0
commit 138e77f9c1

View file

@ -44,7 +44,7 @@ namespace SafeExamBrowser.UserInterface.Shared.Utilities
[DllImport("user32.dll")]
private static extern int DestroyIcon(IntPtr hIcon);
[DllImport("shell32.dll")]
[DllImport("shell32.dll", CharSet = CharSet.Unicode)]
private static extern IntPtr SHGetFileInfo(string pszPath, uint dwFileAttributes, ref SHFILEINFO psfi, uint cbSizeFileInfo, uint uFlags);
[StructLayout(LayoutKind.Sequential)]