diff --git a/VietTypeATL/Register.cpp b/VietTypeATL/Register.cpp index a495bc2..dcdd5e2 100644 --- a/VietTypeATL/Register.cpp +++ b/VietTypeATL/Register.cpp @@ -294,10 +294,6 @@ extern "C" HRESULT __cdecl DeactivateProfiles() { HRESULT hr; LSTATUS err; - CComPtr profileMgr; - hr = profileMgr.CoCreateInstance(CLSID_TF_InputProcessorProfiles, NULL, CLSCTX_INPROC_SERVER); - HRESULT_CHECK_RETURN(hr, L"%s", L"profileMgr.CoCreateInstance failed"); - hr = InstallTip(false); HRESULT_CHECK_RETURN(hr, L"%s", L"InstallTip failed"); @@ -305,9 +301,7 @@ extern "C" HRESULT __cdecl DeactivateProfiles() { CRegKey key; err = key.Create(HKEY_CURRENT_USER, L"Keyboard Layout\\Substitutes", nullptr, 0, KEY_SET_VALUE); WINERROR_CHECK_RETURN_HRESULT(err, L"%s", L"key.Create(Keyboard Layout\\Substitutes) failed"); - - err = key.DeleteValue(L"0000042a"); - WINERROR_CHECK_RETURN_HRESULT(err, L"%s", L"key.SetStringValue failed"); + key.DeleteValue(L"0000042a"); } return S_OK;