From 78b8c6edd45321b78d506df206108c0976c22088 Mon Sep 17 00:00:00 2001 From: Valentin-Gabriel Radu Date: Wed, 30 Mar 2022 22:26:00 +0300 Subject: [PATCH] Taskbar10: Fixed a bug that prevented `UndeadStartCorner` from working properly when the taskbar alignment setting was never used --- ExplorerPatcher/dllmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 3b65c23..9814367 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -1916,7 +1916,7 @@ int HandleTaskbarCornerInteraction(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM l OpenStartOnMonitor(hMonitor); return 1; } - DWORD dwVal = 0, dwSize = sizeof(DWORD); + DWORD dwVal = 1, dwSize = sizeof(DWORD); RegGetValueW(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", L"TaskbarAl", RRF_RT_DWORD, NULL, &dwVal, &dwSize); if (dwVal) {