From 526157b016dd0a6cd4760e78ca6cd8feefbc46d3 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 20 Mar 2020 14:32:39 +0100 Subject: [PATCH] prevent dropping on lnk files --- Global_Indexer/ClassFilehandle.vb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Global_Indexer/ClassFilehandle.vb b/Global_Indexer/ClassFilehandle.vb index 504de2b..f585fe6 100644 --- a/Global_Indexer/ClassFilehandle.vb +++ b/Global_Indexer/ClassFilehandle.vb @@ -39,6 +39,16 @@ Public Class ClassFilehandle End If End If End If + + If filename.ToUpper.EndsWith(".LNK") Then + If USER_LANGUAGE = "de-DE" Then + MsgBox("Verknüpfungen können nicht abgelegt werden!", MsgBoxStyle.Critical, "Global Indexer") + Else + MsgBox("Shortcuts cannot be droppped!", MsgBoxStyle.Critical, "Global Indexer") + End If + Return False + End If + Return Insert_GI_File(filename, handletype) Catch ex As Exception MsgBox("Unexpected Error in Decide_FileHandle: " & ex.Message, MsgBoxStyle.Critical)