A couple minor bug fixes

This commit is contained in:
Chris Davis 2019-11-09 00:30:00 -08:00
parent b9b60a1346
commit 997ea3a2f5
2 changed files with 2 additions and 2 deletions

View File

@ -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))
{

View File

@ -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;
}