Fix file drop string marshalling

This commit is contained in:
Christopher Lees 2017-07-05 22:58:40 +01:00
parent 526fbddd29
commit 89ed072d77

View file

@ -128,13 +128,13 @@ namespace OpenTK.Platform.Windows
internal static class Functions internal static class Functions
{ {
[DllImport("shell32.dll")] [DllImport("shell32.dll", CharSet = CharSet.Auto)]
internal static extern bool DragAcceptFiles( internal static extern bool DragAcceptFiles(
IntPtr handle, IntPtr handle,
[MarshalAs(UnmanagedType.Bool)] bool fAccept [MarshalAs(UnmanagedType.Bool)] bool fAccept
); );
[DllImport("shell32.dll")] [DllImport("shell32.dll", CharSet = CharSet.Auto)]
internal static extern uint DragQueryFile( internal static extern uint DragQueryFile(
HDROP hDrop, HDROP hDrop,
uint iFile, uint iFile,