From 0a434b1015342838eb38e95a5040cc50ce03911a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 2 Jul 2012 11:54:42 +0000 Subject: [PATCH] handling illegal fsrefs by returning an empty string, fixes #14384 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index b1d98afaf8..a05b15e438 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -842,6 +842,9 @@ wxString wxMacFSRefToPath( const FSRef *fsRef , CFStringRef additionalPathCompon { CFURLRef fullURLRef; fullURLRef = CFURLCreateFromFSRef(NULL, fsRef); + if ( fullURLRef == NULL) + return wxEmptyString; + if ( additionalPathComponent ) { CFURLRef parentURLRef = fullURLRef ; -- 2.45.2