* Fix crashing bug in event vector cleanup

* Fix warnings in settings.cpp
* Add settings to ui of powertoys
This commit is contained in:
Chris Davis
2019-11-11 20:58:39 -08:00
parent 1e89054897
commit e328c5d505
8 changed files with 476 additions and 418 deletions

View File

@@ -357,6 +357,8 @@ void CPowerRenameUI::_Cleanup()
{
RevokeDragDrop(m_hwnd);
}
m_hwnd = NULL;
}
void CPowerRenameUI::_EnumerateItems(_In_ IDataObject* pdtobj)
@@ -447,13 +449,16 @@ HRESULT CPowerRenameUI::_WriteSettings()
void CPowerRenameUI::_OnCloseDlg()
{
if (m_modeless)
if (m_hwnd != NULL)
{
DestroyWindow(m_hwnd);
}
else
{
EndDialog(m_hwnd, 1);
if (m_modeless)
{
DestroyWindow(m_hwnd);
}
else
{
EndDialog(m_hwnd, 1);
}
}
}