Code sanity

This commit is contained in:
Vlad K 2017-06-21 22:10:11 +03:00
parent eb951d8569
commit 9486b4963b
2 changed files with 1 additions and 2 deletions

View file

@ -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);