[FancyZones] capture strong_this (#6066)

This commit is contained in:
Seraphima Zykova
2020-08-20 19:55:41 +03:00
committed by GitHub
parent 9a36b005a1
commit 9b567f9ba3

View File

@@ -525,7 +525,8 @@ ZoneWindow::ShowZoneWindow() noexcept
SetWindowPos(window, windowInsertAfter, 0, 0, 0, 0, flags);
std::thread{ [=]() {
std::thread{ [this, strong_this{ get_strong() }]() {
auto window = m_window.get();
AnimateWindow(window, m_showAnimationDuration, AW_BLEND);
InvalidateRect(window, nullptr, true);
if (!m_host->InMoveSize())