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
This commit is contained in:
Stefan Csomor
2012-07-02 11:54:42 +00:00
parent 9c841f8485
commit 0a434b1015

View 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 ;