From 9486b4963bcd849578a8e17fd25230e643f65708 Mon Sep 17 00:00:00 2001 From: Vlad K Date: Wed, 21 Jun 2017 22:10:11 +0300 Subject: [PATCH] Code sanity --- src/OpenTK/Platform/SDL2/Sdl2.cs | 2 +- src/OpenTK/Platform/Windows/WinGLNative.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OpenTK/Platform/SDL2/Sdl2.cs b/src/OpenTK/Platform/SDL2/Sdl2.cs index e5bfacc9..bd6fffe0 100644 --- a/src/OpenTK/Platform/SDL2/Sdl2.cs +++ b/src/OpenTK/Platform/SDL2/Sdl2.cs @@ -141,7 +141,7 @@ namespace OpenTK.Platform.SDL2 [SuppressUnmanagedCodeSecurity] [DllImport (lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_free", ExactSpelling = true)] - public static extern void Free (IntPtr memblock); + public static extern void Free(IntPtr memblock); #region GameContoller diff --git a/src/OpenTK/Platform/Windows/WinGLNative.cs b/src/OpenTK/Platform/Windows/WinGLNative.cs index d068428c..db65cb7c 100644 --- a/src/OpenTK/Platform/Windows/WinGLNative.cs +++ b/src/OpenTK/Platform/Windows/WinGLNative.cs @@ -689,7 +689,6 @@ namespace OpenTK.Platform.Windows { // Don't forget about \0 at the end uint fileNameSize = Functions.DragQueryFile(hDrop, i, IntPtr.Zero, 0) + 1; - byte [] byteArray = new byte [fileNameSize]; IntPtr str = Marshal.AllocHGlobal((int)fileNameSize); Functions.DragQueryFile(hDrop, i, str, fileNameSize);