summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-12 09:06:06 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-13 10:10:44 +0200
commitbcad6c7e93861ca23eba4a44f1c11d2a3d9c48e9 (patch)
tree8a179e1cad950548be23f1d2f33e4ae10a64deee /fpicker
parenta445eb43568ec5fc1bf2fcb3199aa045696ccc6c (diff)
warning C4189: local variable is initialized but not referenced
Change-Id: Ibe6ee8225da0090656fbec3ce2253b2c42ddff78
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
index ee1c0b07da9c..1014ad5eecd6 100644
--- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
@@ -724,6 +724,8 @@ void VistaFilePickerImpl::impl_sta_SetDefaultName(const RequestRef& rRequest)
// so that the autoextension mechanism can do its job
BOOL bValue = FALSE;
HRESULT hResult = iCustom->GetCheckButtonState( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, &bValue);
+ if ( FAILED(hResult) )
+ return;
if ( bValue )
{
sal_Int32 nSepPos = sFilename.lastIndexOf( '.' );
@@ -759,6 +761,8 @@ void VistaFilePickerImpl::impl_sta_setFiltersOnDialog()
BOOL bValue = FALSE;
HRESULT hResult = iCustomize->GetCheckButtonState( css::ui::dialogs::ExtendedFilePickerElementIds::CHECKBOX_AUTOEXTENSION, &bValue);
+ if ( FAILED(hResult) )
+ return;
if ( bValue )
{