Skip to content

Commit cdd3f02

Browse files
committed
Updater: Fix error message
1 parent 830ecc3 commit cdd3f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/Updater/page5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ HRESULT CALLBACK FinalTaskDialogCallbackProc(
139139
info.lpVerb = UpdaterCheckApplicationDirectory() ? NULL : L"runas";
140140
info.nShow = SW_SHOW;
141141
info.hwnd = hwndDlg;
142-
info.fMask = SEE_MASK_NOASYNC | SEE_MASK_FLAG_NO_UI;
142+
info.fMask = SEE_MASK_NOASYNC | SEE_MASK_FLAG_NO_UI | SEE_MASK_NOZONECHECKS;
143143

144144
ProcessHacker_PrepareForEarlyShutdown(PhMainWndHandle);
145145

@@ -157,7 +157,7 @@ HRESULT CALLBACK FinalTaskDialogCallbackProc(
157157
// Show error dialog.
158158
if (errorCode != ERROR_CANCELLED) // Ignore UAC decline.
159159
{
160-
PhShowStatus(hwndDlg, L"Unable to execute the setup.", 0, GetLastError());
160+
PhShowStatus(hwndDlg, L"Unable to execute the setup.", 0, errorCode);
161161

162162
if (context->StartupCheck)
163163
ShowAvailableDialog(context);

0 commit comments

Comments
 (0)