Merge pull request #562 from leezer3/FileDropString

Fix file drop string marshalling
This commit is contained in:
Fraser Waters 2017-07-06 22:02:39 +01:00 committed by GitHub
commit 4d2b5722ee

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,