From 138e77f9c1b6a4ae4363ff2ec81bac37f9ddc589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 21 Dec 2020 11:31:22 +0100 Subject: [PATCH] #63: Fixed issue with string marshalling when loading icons for file system dialog. --- SafeExamBrowser.UserInterface.Shared/Utilities/IconLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.UserInterface.Shared/Utilities/IconLoader.cs b/SafeExamBrowser.UserInterface.Shared/Utilities/IconLoader.cs index 76434743..68878fcb 100644 --- a/SafeExamBrowser.UserInterface.Shared/Utilities/IconLoader.cs +++ b/SafeExamBrowser.UserInterface.Shared/Utilities/IconLoader.cs @@ -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)]