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); }