Skip to content

Commit 8e67c1d

Browse files
committed
OnlineChecks: Fix options layout
1 parent 8e40aea commit 8e67c1d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

plugins/OnlineChecks/OnlineChecks.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ BEGIN
9595
CONTROL "Enable VirusTotal scanning",IDC_ENABLE_VIRUSTOTAL,
9696
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,101,10
9797
CONTROL "Enable VirusTotal detection highlighting",IDC_ENABLE_IDC_ENABLE_VIRUSTOTAL_HIGHLIGHT,
98-
"Button",BS_AUTOCHECKBOX | NOT WS_VISIBLE | WS_TABSTOP,7,19,141,10
98+
"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,7,20,141,10
9999
PUSHBUTTON "Close",IDCANCEL,129,82,50,14
100100
CONTROL "Enable detection actions",IDC_CHECK1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,34,94,10
101101
EDITTEXT IDC_EDIT1,91,47,37,14,ES_AUTOHSCROLL

plugins/Updater/page5.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,19 @@ HRESULT CALLBACK FinalTaskDialogCallbackProc(
7272

7373
ProcessHacker_PrepareForEarlyShutdown(PhMainWndHandle);
7474

75-
if (!ShellExecuteEx(&info))
75+
if (ShellExecuteEx(&info))
76+
{
77+
ProcessHacker_Destroy(PhMainWndHandle);
78+
}
79+
else
7680
{
7781
// Install failed, cancel the shutdown.
7882
ProcessHacker_CancelEarlyShutdown(PhMainWndHandle);
7983

8084
// Set button text for next action
8185
//Button_SetText(GetDlgItem(hwndDlg, IDOK), L"Retry");
82-
8386
return S_FALSE;
8487
}
85-
else
86-
{
87-
ProcessHacker_Destroy(PhMainWndHandle);
88-
}
8988
}
9089
}
9190
break;
@@ -149,8 +148,8 @@ VOID ShowLatestVersionDialog(
149148
PIMAGE_NT_HEADERS imageNtHeader;
150149

151150
// HACK
152-
imageDosHeader = (PIMAGE_DOS_HEADER)PluginInstance->DllBase;
153-
imageNtHeader = (PIMAGE_NT_HEADERS)PTR_ADD_OFFSET(PluginInstance->DllBase, (ULONG)imageDosHeader->e_lfanew);
151+
imageDosHeader = (PIMAGE_DOS_HEADER)NtCurrentPeb()->ImageBaseAddress;
152+
imageNtHeader = (PIMAGE_NT_HEADERS)PTR_ADD_OFFSET(imageDosHeader, (ULONG)imageDosHeader->e_lfanew);
154153

155154
RtlSecondsSince1970ToTime(imageNtHeader->FileHeader.TimeDateStamp, &time);
156155
PhLargeIntegerToLocalSystemTime(&systemTime, &time);

0 commit comments

Comments
 (0)