Fix a crash on Windows < 11.
This commit is contained in:
parent
45a8095aee
commit
f0efb19713
1 changed files with 3 additions and 0 deletions
|
|
@ -169,6 +169,9 @@ void TitleWidget::refreshAdditionalPaddings(HWND handle) {
|
||||||
void TitleWidget::refreshAdditionalPaddings(
|
void TitleWidget::refreshAdditionalPaddings(
|
||||||
HWND handle,
|
HWND handle,
|
||||||
const WINDOWPLACEMENT &placement) {
|
const WINDOWPLACEMENT &placement) {
|
||||||
|
if (!additionalPaddingRequired()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto geometry = RECT();
|
auto geometry = RECT();
|
||||||
if (!GetWindowRect(handle, &geometry)) {
|
if (!GetWindowRect(handle, &geometry)) {
|
||||||
LOG(("System Error: GetWindowRect failed."));
|
LOG(("System Error: GetWindowRect failed."));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue