[REGEDIT] Trivial resizing code fix 950/head
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 15 Oct 2018 14:28:19 +0000 (23:28 +0900)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 21 Oct 2018 11:08:26 +0000 (13:08 +0200)
base/applications/regedit/framewnd.c

index 7bddbf8..7a36825 100644 (file)
@@ -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);
 }