From 125db5ead912a90f288e3f75fa713e27430bf4f9 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Mon, 15 Oct 2018 23:28:19 +0900 Subject: [PATCH] [REGEDIT] Trivial resizing code fix --- base/applications/regedit/framewnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/applications/regedit/framewnd.c b/base/applications/regedit/framewnd.c index 7bddbf81587..7a3682572f2 100644 --- a/base/applications/regedit/framewnd.c +++ b/base/applications/regedit/framewnd.c @@ -52,8 +52,8 @@ static void resize_frame_rect(HWND hWnd, PRECT prect) if (IsWindowVisible(hStatusBar)) { SetupStatusBar(hWnd, TRUE); - GetClientRect(hStatusBar, &rt); - prect->bottom -= rt.bottom; + GetWindowRect(hStatusBar, &rt); + prect->bottom -= rt.bottom - rt.top; } MoveWindow(g_pChildWnd->hWnd, prect->left, prect->top, prect->right, prect->bottom, TRUE); }