Ansi to Auto

This commit is contained in:
Vlad K 2017-06-19 00:20:07 +03:00
parent aba85d479c
commit 280fa4b77d

View file

@ -349,7 +349,7 @@ namespace OpenTK.Platform.MacOS
{ {
IntPtr obj = Cocoa.SendIntPtr(files, Selector.Get("objectAtIndex:"), new IntPtr(i)); IntPtr obj = Cocoa.SendIntPtr(files, Selector.Get("objectAtIndex:"), new IntPtr(i));
IntPtr str = Cocoa.SendIntPtr(obj, Selector.Get("cStringUsingEncoding:"), new IntPtr(1)); IntPtr str = Cocoa.SendIntPtr(obj, Selector.Get("cStringUsingEncoding:"), new IntPtr(1));
OnFileDrop(Marshal.PtrToStringAnsi(str)); OnFileDrop(Marshal.PtrToStringAuto(str));
} }
return true; return true;