From 280fa4b77d4086121868e2200b4652c2b92f5df1 Mon Sep 17 00:00:00 2001 From: Vlad K Date: Mon, 19 Jun 2017 00:20:07 +0300 Subject: [PATCH] Ansi to Auto --- src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs b/src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs index 0f22ac3e..687f5684 100644 --- a/src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs +++ b/src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs @@ -349,7 +349,7 @@ namespace OpenTK.Platform.MacOS { IntPtr obj = Cocoa.SendIntPtr(files, Selector.Get("objectAtIndex:"), new IntPtr(i)); IntPtr str = Cocoa.SendIntPtr(obj, Selector.Get("cStringUsingEncoding:"), new IntPtr(1)); - OnFileDrop(Marshal.PtrToStringAnsi(str)); + OnFileDrop(Marshal.PtrToStringAuto(str)); } return true;