Changes for #170

This commit is contained in:
MikeMaximus
2018-11-08 11:45:22 -06:00
parent 2e7189f047
commit 1b0f26cea1
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -1971,6 +1971,8 @@ Public Class frmMain
StopScan()
End If
End If
GC.Collect()
End Sub
Private Sub bwMonitor_DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles bwMonitor.DoWork
+3 -1
View File
@@ -12,6 +12,7 @@ Public Class mgrProcessDetection
Private oDuplicateGames As New ArrayList
Private bDuplicates As Boolean
Private bVerified As Boolean = False
Private oRegEx As Regex
Property FoundProcess As Process
Get
@@ -143,7 +144,8 @@ Public Class mgrProcessDetection
Private Function IsMatch(ByRef oGame As clsGame, ByRef sProcessCheck As String) As Boolean
If oGame.IsRegEx Then
Try
If Regex.IsMatch(sProcessCheck, oGame.ProcessName) Then
oRegEx = New Regex(oGame.ProcessName)
If oRegEx.IsMatch(sProcessCheck) Then
Return True
End If
Catch