mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
A couple minor bug fixes
This commit is contained in:
@@ -91,7 +91,7 @@ HRESULT CPowerRenameMenu::InvokeCommand(_In_ LPCMINVOKECOMMANDINFO pici)
|
|||||||
{
|
{
|
||||||
HRESULT hr = E_FAIL;
|
HRESULT hr = E_FAIL;
|
||||||
|
|
||||||
if (IsEnabled() &
|
if (IsEnabled() &&
|
||||||
(IS_INTRESOURCE(pici->lpVerb)) &&
|
(IS_INTRESOURCE(pici->lpVerb)) &&
|
||||||
(LOWORD(pici->lpVerb) == 0))
|
(LOWORD(pici->lpVerb) == 0))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ IFACEMETHODIMP CPowerRenameUI::OnRenameCompleted()
|
|||||||
EnableWindow(m_hwnd, TRUE);
|
EnableWindow(m_hwnd, TRUE);
|
||||||
|
|
||||||
// Close the window
|
// Close the window
|
||||||
_OnCloseDlg();
|
PostMessage(m_hwnd, WM_CLOSE, (WPARAM)0, (LPARAM)0);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user