Skip to content

Commit

Permalink
Fix a crash on Windows < 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 19, 2022
1 parent 45a8095 commit f0efb19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/platform/win/ui_window_title_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ void TitleWidget::refreshAdditionalPaddings(HWND handle) {
void TitleWidget::refreshAdditionalPaddings(
HWND handle,
const WINDOWPLACEMENT &placement) {
if (!additionalPaddingRequired()) {
return;
}
auto geometry = RECT();
if (!GetWindowRect(handle, &geometry)) {
LOG(("System Error: GetWindowRect failed."));
Expand Down

0 comments on commit f0efb19

Please sign in to comment.