From: Stefan Csomor Date: Mon, 2 Jul 2012 11:54:42 +0000 (+0000) Subject: handling illegal fsrefs by returning an empty string, fixes #14384 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0a434b1015342838eb38e95a5040cc50ce03911a 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 --- 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 ;