From 275a91f0d947eb64d2e940d564d384e24fad439f Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Wed, 23 Aug 2023 03:47:01 -0700 Subject: [PATCH] Start10: Fixed a bug that prevented centering on Windows 10 --- ExplorerPatcher/dllmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index cb792778c..c747192b9 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -11041,7 +11041,8 @@ void StartMenu_LoadSettings(BOOL bRestartIfChanged) if (hKey) { dwSize = sizeof(DWORD); - dwVal = 0; + if (IsWindows11()) dwVal = 0; + else dwVal = 1; RegQueryValueExW( hKey, TEXT("Start_ShowClassicMode"),