]> git.saurik.com Git - wxWidgets.git/commitdiff
handling illegal fsrefs by returning an empty string, fixes #14384
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 2 Jul 2012 11:54:42 +0000 (11:54 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 2 Jul 2012 11:54:42 +0000 (11:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index b1d98afaf8d8a574912d4ff92c50c814b425b1a2..a05b15e438e029042d3321702d111fe143e37b47 100644 (file)
@@ -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 ;