mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
* Fix crashing bug in event vector cleanup
* Fix warnings in settings.cpp * Add settings to ui of powertoys
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user