From 522440f9c3111b7c931ac1762992d49f50cff3d4 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 2 Oct 2021 19:18:07 +0300 Subject: [PATCH] Fixed bug in GUI that prevented startup of Start menu --- ExplorerPatcher/GUI.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/GUI.c b/ExplorerPatcher/GUI.c index 5dae946..d5cc726 100644 --- a/ExplorerPatcher/GUI.c +++ b/ExplorerPatcher/GUI.c @@ -380,7 +380,9 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) td.pfCallback = GUI_AboutProc; td.lpCallbackData = 0; int ret; - HRESULT hr = TaskDialogIndirect( + + // If used directly, StartMenuExperienceHost.exe crashes badly and is unable to start; guess how I know... + (HRESULT(*)(const TASKDIALOGCONFIG*, int*, int*, BOOL*))(GetProcAddress(GetModuleHandleA("Comctl32.dll"), "TaskDialogIndirect"))( &td, &ret, NULL,