You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by af...@apache.org on 2013/06/28 11:11:27 UTC

svn commit: r1497691 - /openoffice/trunk/main/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx

Author: af
Date: Fri Jun 28 09:11:27 2013
New Revision: 1497691

URL: http://svn.apache.org/r1497691
Log:
121772: Prevent a crash when no plugin filter is present.

Modified:
    openoffice/trunk/main/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx

Modified: openoffice/trunk/main/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx?rev=1497691&r1=1497690&r2=1497691&view=diff
==============================================================================
--- openoffice/trunk/main/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx (original)
+++ openoffice/trunk/main/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx Fri Jun 28 09:11:27 2013
@@ -767,6 +767,9 @@ void VistaFilePickerImpl::impl_sta_setFi
     aLock.clear();
     // <- SYNCHRONIZED
 
+    if (lFilters.empty())
+        return;
+
 	COMDLG_FILTERSPEC	*pFilt = &lFilters[0];
     iDialog->SetFileTypes(lFilters.size(), pFilt/*&lFilters[0]*/);
     iDialog->SetFileTypeIndex(nCurrentFilter + 1);