1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-27 17:00:59 +01:00

Fixed bug in GUI that prevented startup of Start menu

This commit is contained in:
Valentin Radu 2021-10-02 19:18:07 +03:00
parent 04982aa11d
commit 522440f9c3

View File

@ -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,