Linux: Fixed crash when drag and dropping a file contained in a compressed file

This commit is contained in:
Sour 2018-05-09 21:50:38 -04:00
parent da91d36c8f
commit fe8125e58d

View file

@ -1150,7 +1150,7 @@ namespace Mesen.GUI.Forms
private void frmMain_DragEnter(object sender, DragEventArgs e)
{
try {
if(e.Data.GetDataPresent(DataFormats.FileDrop)) {
if(e.Data != null && e.Data.GetDataPresent(DataFormats.FileDrop)) {
e.Effect = DragDropEffects.Copy;
} else {
InteropEmu.DisplayMessage("Error", "Unsupported operation.");