make it detect ocx and edge pepperflash

This commit is contained in:
Bluzume 2021-01-18 21:03:16 +13:00 committed by GitHub
parent 11189382b7
commit 0d4c30d64f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,7 @@ namespace DontTouchMyFlash
String[] fileList = Directory.GetFiles(path, "*", SearchOption.AllDirectories); String[] fileList = Directory.GetFiles(path, "*", SearchOption.AllDirectories);
foreach (string file in fileList) foreach (string file in fileList)
{ {
if (file.EndsWith("*.ocx") || file.EndsWith(".dll") || file.EndsWith(".exe")) if (file.ToLower().EndsWith(".ocx") || file.ToLower().EndsWith(".dll") || file.ToLower().EndsWith(".exe"))
{ {
CheckFileAndAdd(file); CheckFileAndAdd(file);
} }
@ -120,9 +120,11 @@ namespace DontTouchMyFlash
flashPath = Path.Combine(windir, "SysWOW64", "Macromed", "Flash"); flashPath = Path.Combine(windir, "SysWOW64", "Macromed", "Flash");
ScanFolder(flashPath); ScanFolder(flashPath);
flashPath = Path.Combine(localappdata, "Google", "Chrome", "User Data", "PepperFlash"); flashPath = Path.Combine(localappdata, "Google", "Chrome", "User Data", "PepperFlash");
ScanFolder(flashPath); ScanFolder(flashPath);
flashPath = Path.Combine(localappdata, "Microsoft", "Edge", "User Data", "PepperFlash");
ScanFolder(flashPath);
} }
private void FlashPwner_Load(object sender, EventArgs e) private void FlashPwner_Load(object sender, EventArgs e)
{ {