Skip to content

Commit 9fc793c

Browse files
committed
Update previous inno patch
1 parent 061de0b commit 9fc793c

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

build/installer/Custom_Messages.iss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ en.comp_DotNetTools =.NET Tools
2929
en.comp_ExtendedNotifications =Extended Notifications
3030
en.comp_ExtendedServices =Extended Services
3131
en.comp_ExtendedTools =Extended Tools
32+
en.comp_ExtraPlugins =Extra Plugins
3233
en.comp_HardwareDevices =Hardware Devices
3334
en.comp_NetworkTools =Network Tools
3435
en.comp_OnlineChecks =Online Checks

plugins/OnlineChecks/main.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -303,27 +303,27 @@ VOID ProcessHighlightingColorCallback(
303303
{
304304
PPH_PLUGIN_GET_HIGHLIGHTING_COLOR getHighlightingColor = Parameter;
305305
PPH_PROCESS_ITEM processItem = (PPH_PROCESS_ITEM)getHighlightingColor->Parameter;
306-
PPROCESS_DB_OBJECT object;
306+
//PPROCESS_DB_OBJECT object;
307307

308308
if (getHighlightingColor->Handled)
309309
return;
310310

311-
if (!PhGetIntegerSetting(SETTING_NAME_VIRUSTOTAL_HIGHLIGHT_DETECTIONS))
312-
return;
311+
//if (!PhGetIntegerSetting(SETTING_NAME_VIRUSTOTAL_HIGHLIGHT_DETECTIONS))
312+
// return;
313313

314-
LockProcessDb();
314+
//LockProcessDb();
315315

316-
if (PhIsNullOrEmptyString(processItem->FileName))
317-
return;
316+
//if (PhIsNullOrEmptyString(processItem->FileName))
317+
// return;
318318

319-
if ((object = FindProcessDbObject(&processItem->FileName->sr)) && object->Positives)
320-
{
321-
getHighlightingColor->BackColor = RGB(255, 0, 0);
322-
getHighlightingColor->Cache = TRUE;
323-
getHighlightingColor->Handled = TRUE;
324-
}
319+
//if ((object = FindProcessDbObject(&processItem->FileName->sr)) && object->Positives)
320+
//{
321+
// getHighlightingColor->BackColor = RGB(255, 0, 0);
322+
// getHighlightingColor->Cache = TRUE;
323+
// getHighlightingColor->Handled = TRUE;
324+
//}
325325

326-
UnlockProcessDb();
326+
//UnlockProcessDb();
327327
}
328328

329329
LONG NTAPI VirusTotalProcessNodeSortFunction(

plugins/OnlineChecks/options.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ INT_PTR CALLBACK OptionsDlgProc(
4747
{
4848
case IDCANCEL:
4949
{
50-
PhSetIntegerSetting(SETTING_NAME_VIRUSTOTAL_SCAN_ENABLED, Button_GetCheck(GetDlgItem(hwndDlg, IDC_ENABLE_VIRUSTOTAL)) == BST_CHECKED ? 1 : 0);
51-
//PhSetIntegerSetting(SETTING_NAME_VIRUSTOTAL_HIGHLIGHT_DETECTIONS, Button_GetCheck(GetDlgItem(hwndDlg, IDC_ENABLE_IDC_ENABLE_VIRUSTOTAL_HIGHLIGHT)) == BST_CHECKED ? 1 : 0);
50+
PhSetIntegerSetting(SETTING_NAME_VIRUSTOTAL_SCAN_ENABLED,
51+
Button_GetCheck(GetDlgItem(hwndDlg, IDC_ENABLE_VIRUSTOTAL)) == BST_CHECKED ? 1 : 0);
5252

5353
EndDialog(hwndDlg, IDCANCEL);
5454
}

plugins/OnlineChecks/virustotal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ NTSTATUS NTAPI VirusTotalProcessApiThread(
402402
NtSetInformationThread(NtCurrentThread(), ThreadBasePriority, &increment, sizeof(LONG));
403403
NtSetInformationThread(NtCurrentThread(), ThreadIoPriority, &ioPriority, sizeof(IO_PRIORITY_HINT));
404404

405-
Sleep(5 * 1000);
405+
Sleep(10 * 1000);
406406

407407
do
408408
{
@@ -440,7 +440,7 @@ NTSTATUS NTAPI VirusTotalProcessApiThread(
440440

441441
if (resultTempList->Count == 0)
442442
{
443-
Sleep(20 * 1000); // Wait 20 seconds
443+
Sleep(30 * 1000); // Wait 20 seconds
444444
goto CleanupExit;
445445
}
446446

0 commit comments

Comments
 (0)