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:
@@ -842,6 +842,9 @@ wxString wxMacFSRefToPath( const FSRef *fsRef , CFStringRef additionalPathCompon
|
|||||||
{
|
{
|
||||||
CFURLRef fullURLRef;
|
CFURLRef fullURLRef;
|
||||||
fullURLRef = CFURLCreateFromFSRef(NULL, fsRef);
|
fullURLRef = CFURLCreateFromFSRef(NULL, fsRef);
|
||||||
|
if ( fullURLRef == NULL)
|
||||||
|
return wxEmptyString;
|
||||||
|
|
||||||
if ( additionalPathComponent )
|
if ( additionalPathComponent )
|
||||||
{
|
{
|
||||||
CFURLRef parentURLRef = fullURLRef ;
|
CFURLRef parentURLRef = fullURLRef ;
|
||||||
|
Reference in New Issue
Block a user