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