diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 02:39:15 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 02:39:15 +0000 |
commit | a072cf75a5423e687764e52d0a2e5765ed3637b5 (patch) | |
tree | 7fe373d22a3262050994f058ab0eb678c1f99cf9 /setup_native | |
parent | 24683c5472b9f80bb672eb8835f2e34443667496 (diff) |
INTEGRATION: CWS warnings01 (1.3.6); FILE MERGED
2006/01/31 13:35:22 sb 1.3.6.1: #i53898# Made code warning-free.
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/source/win32/customactions/reg4msdoc/registry.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/setup_native/source/win32/customactions/reg4msdoc/registry.cxx b/setup_native/source/win32/customactions/reg4msdoc/registry.cxx index adf582d72392..1caec175ebcc 100644 --- a/setup_native/source/win32/customactions/reg4msdoc/registry.cxx +++ b/setup_native/source/win32/customactions/reg4msdoc/registry.cxx @@ -4,9 +4,9 @@ * * $RCSfile: registry.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: kz $ $Date: 2006-01-06 11:20:19 $ + * last change: $Author: hr $ $Date: 2006-06-20 03:39:15 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -192,8 +192,9 @@ bool RegistryKeyImpl::HasSubKey(const std::wstring& Name) const */ void RegistryKeyImpl::Close() { - LONG rc = RegCloseKey(m_hSubKey); - assert(ERROR_SUCCESS == rc); + if (RegCloseKey(m_hSubKey) != ERROR_SUCCESS) { + assert(false); + } m_hSubKey = 0; m_IsWriteable = false; |