summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-08-02 21:23:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-08-02 21:23:26 +0300
commitbb73924a397ebbdb6eb6c8b1cafa645bfa6ba71c (patch)
tree40b8d60c54716041ec6758e02e18689208f481c2 /src/mir_core
parentdf07a56677531fe795a741c56567f67697d048b7 (diff)
fixes #3136 (UInfoEx: баги после переписывания на классы)
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/Windows/resizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/Windows/resizer.cpp b/src/mir_core/src/Windows/resizer.cpp
index 1f62d43bd4..3b5de46fcc 100644
--- a/src/mir_core/src/Windows/resizer.cpp
+++ b/src/mir_core/src/Windows/resizer.cpp
@@ -143,7 +143,7 @@ MIR_CORE_DLL(int) Utils_ResizeDialog(HWND hwndDlg, HINSTANCE hInstance, LPCSTR l
}
HWND hCtrl = GetDlgItem(hwndDlg, urc.wId);
- if (hCtrl != nullptr)
+ if (hCtrl != nullptr && urc.wId != UINT(-1))
hDwp = DeferWindowPos(hDwp, hCtrl, nullptr, urc.rcItem.left, urc.rcItem.top, urc.rcItem.right - urc.rcItem.left, urc.rcItem.bottom - urc.rcItem.top, SWP_NOZORDER);
}
EndDeferWindowPos(hDwp);