From 0905e88f704fba00bd24540f4bc9d24dd1fd9fb6 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sat, 20 Apr 2024 10:39:37 +0800 Subject: [PATCH] Fix. --- Sandboxie/core/dll/gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sandboxie/core/dll/gui.c b/Sandboxie/core/dll/gui.c index 711d925e..62359f6f 100644 --- a/Sandboxie/core/dll/gui.c +++ b/Sandboxie/core/dll/gui.c @@ -1973,8 +1973,8 @@ _FX BOOL Gui_SetWindowPos( P_GetSystemMetrics GetSystemMetrics = Ldr_GetProcAddrNew("user32.dll", "GetSystemMetrics", "GetSystemMetrics"); if (!GetSystemMetrics) goto then; SystemParametersInfoA(SPI_GETWORKAREA, 0, &rt, 0); int y1 = GetSystemMetrics(SM_CYSCREEN) - rt.bottom; - if (y > y1) - y = y1; + if (y+h > y1) + h = y1-y; } then: if (Gui_UseProxyService && !Gui_IsSameBox(hWnd, NULL, NULL)) {