mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-17 17:37:38 +00:00
Code sanity
This commit is contained in:
parent
eb951d8569
commit
9486b4963b
|
@ -141,7 +141,7 @@ namespace OpenTK.Platform.SDL2
|
||||||
|
|
||||||
[SuppressUnmanagedCodeSecurity]
|
[SuppressUnmanagedCodeSecurity]
|
||||||
[DllImport (lib, CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_free", ExactSpelling = true)]
|
[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
|
#region GameContoller
|
||||||
|
|
||||||
|
|
|
@ -689,7 +689,6 @@ namespace OpenTK.Platform.Windows
|
||||||
{
|
{
|
||||||
// Don't forget about \0 at the end
|
// Don't forget about \0 at the end
|
||||||
uint fileNameSize = Functions.DragQueryFile(hDrop, i, IntPtr.Zero, 0) + 1;
|
uint fileNameSize = Functions.DragQueryFile(hDrop, i, IntPtr.Zero, 0) + 1;
|
||||||
byte [] byteArray = new byte [fileNameSize];
|
|
||||||
IntPtr str = Marshal.AllocHGlobal((int)fileNameSize);
|
IntPtr str = Marshal.AllocHGlobal((int)fileNameSize);
|
||||||
|
|
||||||
Functions.DragQueryFile(hDrop, i, str, fileNameSize);
|
Functions.DragQueryFile(hDrop, i, str, fileNameSize);
|
||||||
|
|
Loading…
Reference in a new issue