summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-04-02 11:33:47 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-04-02 11:33:47 +0000
commite69a6e34a31d8a27eb270fb962ae9e24719a2ddf (patch)
tree5996dd1aa94c1b93234f5e3fa988c00d514ae5b4 /setup_native
parent7a1e8c86cefd3c69168299e7608137226652fe32 (diff)
INTEGRATION: CWS native80 (1.2.38); FILE MERGED
2007/02/21 10:29:53 dv 1.2.38.1: #i45477# HasSubKey doesn't look for sub-subkeys
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/customactions/reg4msdoc/registrar.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/registrar.cxx b/setup_native/source/win32/customactions/reg4msdoc/registrar.cxx
index 95482020d2f7..1e3847ac223f 100644
--- a/setup_native/source/win32/customactions/reg4msdoc/registrar.cxx
+++ b/setup_native/source/win32/customactions/reg4msdoc/registrar.cxx
@@ -307,14 +307,13 @@ void Registrar::UnregisterAsHtmlEditorForInternetExplorer() const
{
std::wstring OOFriendlyAppName = m_ContextInformation.GetOpenOfficeFriendlyAppName();
- std::wstring RegKeyName = APPLICATIONS + std::wstring(L"\\") + OOFriendlyAppName;
- if (m_RootKey->HasSubKey(RegKeyName))
- m_RootKey->DeleteSubKeyTree(RegKeyName);
+ RegistryKey aRegKey = m_RootKey->OpenSubKey( APPLICATIONS );
+ if ( aRegKey->HasSubKey( OOFriendlyAppName ) )
+ aRegKey->DeleteSubKeyTree( OOFriendlyAppName );
- RegKeyName = HTM_OPENWITHLIST + std::wstring(L"\\") + OOFriendlyAppName;
-
- if (m_RootKey->HasSubKey(RegKeyName))
- m_RootKey->DeleteSubKeyTree(RegKeyName);
+ aRegKey = m_RootKey->OpenSubKey( HTM_OPENWITHLIST );
+ if ( aRegKey->HasSubKey( OOFriendlyAppName ) )
+ aRegKey->DeleteSubKeyTree( OOFriendlyAppName );
}
catch(RegistryKeyNotFoundException&)
{}