diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-12 09:06:06 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-13 10:10:44 +0200 |
commit | bcad6c7e93861ca23eba4a44f1c11d2a3d9c48e9 (patch) | |
tree | 8a179e1cad950548be23f1d2f33e4ae10a64deee /fpicker/source/win32 | |
parent | a445eb43568ec5fc1bf2fcb3199aa045696ccc6c (diff) |
warning C4189: local variable is initialized but not referenced
Change-Id: Ibe6ee8225da0090656fbec3ce2253b2c42ddff78
Diffstat (limited to 'fpicker/source/win32')
-rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 4 |
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 ) { |