From 858b6340672640a710c8b9188cd7999e183c4818 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 20 Apr 2025 13:22:57 +0700 Subject: [PATCH] Setup: Ensure DWM patcher service is unregistered during servicing --- ExplorerPatcher/InputSwitch.h | 1 + ep_setup/ep_setup.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/InputSwitch.h b/ExplorerPatcher/InputSwitch.h index 887fdfa..a6cf6dc 100644 --- a/ExplorerPatcher/InputSwitch.h +++ b/ExplorerPatcher/InputSwitch.h @@ -28,6 +28,7 @@ typedef struct __MIDL___MIDL_itf_inputswitchserver_0000_0000_0003 BOOL fDisabled; BOOL fHidden; WCHAR* pszIconGlyph; + void* pUnk1; // @Note: Added in 22621.4974 } INPUT_SWITCH_IDL_IME_MODE_ITEM_DATA; typedef enum __MIDL___MIDL_itf_inputswitchserver_0000_0000_0004 diff --git a/ep_setup/ep_setup.c b/ep_setup/ep_setup.c index dbe60ad..4705670 100644 --- a/ep_setup/ep_setup.c +++ b/ep_setup/ep_setup.c @@ -1162,9 +1162,9 @@ int WINAPI wWinMain( { bAreRoundedCornersDisabled = GetLastError() == ERROR_ACCESS_DENIED; } - if (bAreRoundedCornersDisabled) + RegisterDWMService(0, 1); + if (bInstall && bAreRoundedCornersDisabled) { - RegisterDWMService(0, 1); RegisterDWMService(0, 3); }