fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 9813b7fb44a2fb3c8b3c681b973b8b0fcf4639ad Author: Andre Fischer <a...@apache.org> Date: Fri Jun 28 09:11:27 2013 +0000 121772: Prevent a crash when no plugin filter is present. diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx index 28383c0..f44ba31 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx @@ -767,6 +767,9 @@ void VistaFilePickerImpl::impl_sta_setFiltersOnDialog() aLock.clear(); // <- SYNCHRONIZED + if (lFilters.empty()) + return; + COMDLG_FILTERSPEC *pFilt = &lFilters[0]; iDialog->SetFileTypes(lFilters.size(), pFilt/*&lFilters[0]*/); iDialog->SetFileTypeIndex(nCurrentFilter + 1); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits