Fix a crash on Windows < 11.

This commit is contained in:
John Preston 2022-01-19 09:30:40 +03:00
parent 45a8095aee
commit f0efb19713

View file

@ -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."));