diff options
Diffstat (limited to 'fpicker')
-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 ) { |